Commit 5a153ad for zlib
commit 5a153ade3fed2803129629668c659c5b16fd7692
Author: Mark Adler <git@madler.net>
Date: Tue Feb 10 18:23:39 2026 -0800
Correct printf types in test/example.c.
diff --git a/test/example.c b/test/example.c
index d22e5f4..f517bb6 100644
--- a/test/example.c
+++ b/test/example.c
@@ -325,7 +325,7 @@ static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
CHECK_ERR(err, "inflateEnd");
if (d_stream.total_out != 2*uncomprLen + uncomprLen/2) {
- fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out);
+ fprintf(stderr, "bad large inflate: %lu\n", d_stream.total_out);
exit(1);
} else {
printf("large_inflate(): OK\n");
@@ -510,7 +510,7 @@ int main(int argc, char *argv[]) {
}
printf("zlib version %s = 0x%04x, compile flags = 0x%lx\n",
- ZLIB_VERSION, ZLIB_VERNUM, zlibCompileFlags());
+ ZLIB_VERSION, (unsigned)ZLIB_VERNUM, zlibCompileFlags());
compr = (Byte*)calloc((uInt)comprLen, 1);
uncompr = (Byte*)calloc((uInt)uncomprLen, 1);