diff options
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | } |