]> git.lizzy.rs Git - zlib.git/blobdiff - compress.c
Do not initialize unsigned with -1 in compress.c uncompr.c.
[zlib.git] / compress.c
index 85a96df1cbe1fa610bcdce4ca8c6cd7adea95d67..e5831e8aaec1f5a7877761c15af90792e79c4045 100644 (file)
@@ -28,7 +28,7 @@ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
 {
     z_stream stream;
     int err;
-    const uInt max = -1;
+    const uInt max = (uInt)0 - 1;
     uLong left;
 
     left = *destLen;