From 5a153ade3fed2803129629668c659c5b16fd7692 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Tue, 10 Feb 2026 18:23:39 -0800 Subject: Correct printf types in test/example.c. --- test/example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/example.c') 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, 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); -- cgit v1.2.3-55-g6feb