diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2015-08-02 16:47:14 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-11-03 18:52:30 +0100 |
commit | b673ee00f31131afef396aecae3e3b6a1321c0f2 (patch) | |
tree | 8faee05d5ef895bf6c87472c6f64716c1df5f7dc /uncompr.c | |
parent | 1326f9ee203f20c8468b662ae91c8f8da0f4d2c3 (diff) |
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
@@ -25,7 +25,7 @@ int ZEXPORT uncompress(unsigned char *dest, uLong *destLen, const unsigned char *source, uLong 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 */ |