diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2016-12-31 08:49:17 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2016-12-31 08:49:17 -0800 |
commit | b7fbee215674c3399212dffba1e71323056931d9 (patch) | |
tree | 4bbc5237bdd56b65dc4fb3f49bac359cec26f9cc /compress.c | |
parent | f3fcb92cf6c81b3ecd04b3ceb9243548b80c0cd9 (diff) | |
download | zlib-b7fbee215674c3399212dffba1e71323056931d9.tar.gz |
Use a uniform approach for the largest value of an unsigned type.
Diffstat (limited to 'compress.c')
-rw-r--r-- | compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,7 +28,7 @@ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) { z_stream stream; int err; - const uInt max = (uInt)0 - 1; + const uInt max = (uInt)-1; uLong left; left = *destLen; |