aboutsummaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
Diffstat (limited to '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);