diff options
-rw-r--r-- | compress.c | 2 | ||||
-rw-r--r-- | uncompr.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) | |||
28 | { | 28 | { |
29 | z_stream stream; | 29 | z_stream stream; |
30 | int err; | 30 | int err; |
31 | const uInt max = -1; | 31 | const uInt max = (uInt)0 - 1; |
32 | uLong left; | 32 | uLong left; |
33 | 33 | ||
34 | left = *destLen; | 34 | left = *destLen; |
@@ -30,7 +30,7 @@ int ZEXPORT uncompress (dest, destLen, source, sourceLen) | |||
30 | { | 30 | { |
31 | z_stream stream; | 31 | z_stream stream; |
32 | int err; | 32 | int err; |
33 | const uInt max = -1; | 33 | const uInt max = (uInt)0 - 1; |
34 | uLong left; | 34 | uLong left; |
35 | Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */ | 35 | Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */ |
36 | 36 | ||