diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2015-08-02 16:47:14 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2015-08-02 17:22:20 -0700 |
commit | bfcace04f91bd27c8c7c040da2396fe4b7724422 (patch) | |
tree | 41fc707b03f7825fb4bc600d0522256e011e1bca /uncompr.c | |
parent | 43bfaba3d718a27c1b137b1d1aa90d9427ab4a4f (diff) | |
download | zlib-bfcace04f91bd27c8c7c040da2396fe4b7724422.tar.gz |
Do not initialize unsigned with -1 in compress.c uncompr.c.
Sun compiler complained. Use (unsigned)0 - 1 instead.
Diffstat (limited to 'uncompr.c')
-rw-r--r-- | uncompr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ int ZEXPORT uncompress (dest, destLen, source, sourceLen) { z_stream stream; int err; - const uInt max = -1; + const uInt max = (uInt)0 - 1; uLong left; Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */ |