replace j conversion with PRI for windows

This commit is contained in:
nick black 2021-07-22 16:19:58 -04:00
parent 917361d87d
commit 698d1e59f5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1,4 +1,5 @@
#include <stddef.h>
#include <inttypes.h>
#include "internal.h"
static const uint32_t zeroes32;
@ -1037,7 +1038,7 @@ int ncblit_rgb_packed(const void* data, int linesize,
int ncblit_rgba(const void* data, int linesize, const struct ncvisual_options* vopts){
if(vopts->flags > NCVISUAL_OPTION_BLEND){
fprintf(stderr, "Warning: unknown ncvisual options %016jx\n", (uintmax_t)vopts->flags);
fprintf(stderr, "Warning: unknown ncvisual options %016" PRIx64 "\n", (uintmax_t)vopts->flags);
}
if(linesize <= 0 || (size_t)linesize < vopts->lenx * sizeof(uint32_t)){
return -1;