mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
examples: don't use C99 %zu
this would require a PRIuS or similar macro for proper platform compatibility (Visual Studio for instance would be variants of %lu) Change-Id: I1af530c7c358c91b845acde1d8c12ef46c2ef746
This commit is contained in:
@ -401,7 +401,7 @@ int main(int argc, const char *argv[]) {
|
||||
xmp.bytes = (uint8_t*)data;
|
||||
xmp.size = data[0] + 1;
|
||||
WebPMuxSetChunk(mux, "XMP ", &xmp, 1);
|
||||
if (verbose) printf("XMP size: %zu\n", xmp.size);
|
||||
if (verbose) printf("XMP size: %d\n", (int)xmp.size);
|
||||
} else if (!memcmp(data + 1, "ICCRGBG1012", 11)) {
|
||||
// Read ICC profile.
|
||||
WebPData icc;
|
||||
@ -410,7 +410,7 @@ int main(int argc, const char *argv[]) {
|
||||
icc.bytes = (uint8_t*)data;
|
||||
icc.size = data[0] + 1;
|
||||
WebPMuxSetChunk(mux, "ICCP", &icc, 1);
|
||||
if (verbose) printf("ICC size: %zu\n", icc.size);
|
||||
if (verbose) printf("ICC size: %d\n", (int)icc.size);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user