summaryrefslogtreecommitdiff
path: root/uncompr.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2015-08-02 16:47:14 -0700
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-11-03 18:52:30 +0100
commitb673ee00f31131afef396aecae3e3b6a1321c0f2 (patch)
tree8faee05d5ef895bf6c87472c6f64716c1df5f7dc /uncompr.c
parent1326f9ee203f20c8468b662ae91c8f8da0f4d2c3 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uncompr.c b/uncompr.c
index ab61f74..d94d3d6 100644
--- a/uncompr.c
+++ b/uncompr.c
@@ -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 */