summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-11 11:04:49 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-11 11:04:49 -0700
commit10daf0d4d7815447799d555d04d30325836e1d44 (patch)
tree75579fbe11e42dc3197acca53f5f887ac3808b57 /example.c
parent9712272c78b9d9c93746d9c8e156a3728c65ca72 (diff)
downloadzlib-1.2.5.1.tar.gz
zlib-1.2.5.1.tar.bz2
zlib-1.2.5.1.zip
zlib 1.2.5.1v1.2.5.1
Diffstat (limited to '')
-rw-r--r--example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example.c b/example.c
index 604736f..c15cc03 100644
--- a/example.c
+++ b/example.c
@@ -1,5 +1,5 @@
1/* example.c -- usage example of the zlib compression library 1/* example.c -- usage example of the zlib compression library
2 * Copyright (C) 1995-2006 Jean-loup Gailly. 2 * Copyright (C) 1995-2006, 2011 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
@@ -438,7 +438,7 @@ void test_dict_deflate(compr, comprLen)
438 CHECK_ERR(err, "deflateInit"); 438 CHECK_ERR(err, "deflateInit");
439 439
440 err = deflateSetDictionary(&c_stream, 440 err = deflateSetDictionary(&c_stream,
441 (const Bytef*)dictionary, sizeof(dictionary)); 441 (const Bytef*)dictionary, (int)sizeof(dictionary));
442 CHECK_ERR(err, "deflateSetDictionary"); 442 CHECK_ERR(err, "deflateSetDictionary");
443 443
444 dictId = c_stream.adler; 444 dictId = c_stream.adler;
@@ -491,7 +491,7 @@ void test_dict_inflate(compr, comprLen, uncompr, uncomprLen)
491 exit(1); 491 exit(1);
492 } 492 }
493 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary, 493 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
494 sizeof(dictionary)); 494 (int)sizeof(dictionary));
495 } 495 }
496 CHECK_ERR(err, "inflate with dict"); 496 CHECK_ERR(err, "inflate with dict");
497 } 497 }