From bfcace04f91bd27c8c7c040da2396fe4b7724422 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 2 Aug 2015 16:47:14 -0700 Subject: Do not initialize unsigned with -1 in compress.c uncompr.c. Sun compiler complained. Use (unsigned)0 - 1 instead. --- uncompr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uncompr.c') diff --git a/uncompr.c b/uncompr.c index 2ec3eba..f3f883a 100644 --- a/uncompr.c +++ b/uncompr.c @@ -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 */ -- cgit v1.2.3-55-g6feb