aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2026-02-10 18:23:39 -0800
committerMark Adler <git@madler.net>2026-02-10 22:37:25 -0800
commit5a153ade3fed2803129629668c659c5b16fd7692 (patch)
tree0ad6fece95eb0b6599b9e56c9c910178012346b6
parentfc7593c0e5447fa7a56b8c269cac944dc83952a0 (diff)
downloadzlib-5a153ade3fed2803129629668c659c5b16fd7692.tar.gz
zlib-5a153ade3fed2803129629668c659c5b16fd7692.tar.bz2
zlib-5a153ade3fed2803129629668c659c5b16fd7692.zip
Correct printf types in test/example.c.
-rw-r--r--test/example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/example.c b/test/example.c
index d22e5f43..f517bb66 100644
--- a/test/example.c
+++ b/test/example.c
@@ -325,7 +325,7 @@ static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
325 CHECK_ERR(err, "inflateEnd"); 325 CHECK_ERR(err, "inflateEnd");
326 326
327 if (d_stream.total_out != 2*uncomprLen + uncomprLen/2) { 327 if (d_stream.total_out != 2*uncomprLen + uncomprLen/2) {
328 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out); 328 fprintf(stderr, "bad large inflate: %lu\n", d_stream.total_out);
329 exit(1); 329 exit(1);
330 } else { 330 } else {
331 printf("large_inflate(): OK\n"); 331 printf("large_inflate(): OK\n");
@@ -510,7 +510,7 @@ int main(int argc, char *argv[]) {
510 } 510 }
511 511
512 printf("zlib version %s = 0x%04x, compile flags = 0x%lx\n", 512 printf("zlib version %s = 0x%04x, compile flags = 0x%lx\n",
513 ZLIB_VERSION, ZLIB_VERNUM, zlibCompileFlags()); 513 ZLIB_VERSION, (unsigned)ZLIB_VERNUM, zlibCompileFlags());
514 514
515 compr = (Byte*)calloc((uInt)comprLen, 1); 515 compr = (Byte*)calloc((uInt)comprLen, 1);
516 uncompr = (Byte*)calloc((uInt)uncomprLen, 1); 516 uncompr = (Byte*)calloc((uInt)uncomprLen, 1);