From 913afb9174bb474104049906c1382dec81826424 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 22:52:17 -0700 Subject: zlib 0.79 --- example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example.c') diff --git a/example.c b/example.c index ea1a9eb..86541a7 100644 --- a/example.c +++ b/example.c @@ -3,7 +3,7 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ -/* $Id: example.c,v 1.4 1995/04/14 13:32:49 jloup Exp $ */ +/* $Id: example.c,v 1.5 1995/04/14 20:35:56 jloup Exp $ */ #include #include "zlib.h" @@ -60,7 +60,7 @@ void test_gzio(out, in) char *in; /* input file */ { local Byte uncompr[BUFLEN]; - uLong uncomprLen = sizeof(uncompr); + int uncomprLen = sizeof(uncompr); int err; int len = strlen(hello)+1; gzFile file; @@ -114,7 +114,7 @@ uLong test_deflate(compr) c_stream.next_in = (Byte*)hello; c_stream.next_out = compr; - while (c_stream.total_in != len) { + while (c_stream.total_in != (uLong)len) { c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ err = deflate(&c_stream, Z_NO_FLUSH); CHECK_ERR(err, "deflate"); -- cgit v1.2.3-55-g6feb