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:
James Zern
2013-03-20 16:59:35 -07:00
parent 5ccf1fe540
commit 14d42af207
5 changed files with 16 additions and 15 deletions

View File

@ -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;
}