Do not initialize unsigned with -1 in compress.c uncompr.c.

Sun compiler complained.  Use (unsigned)0 - 1 instead.
This commit is contained in:
Mark Adler 2015-08-02 16:47:14 -07:00
parent 43bfaba3d7
commit bfcace04f9
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
{
z_stream stream;
int err;
const uInt max = -1;
const uInt max = (uInt)0 - 1;
uLong left;
left = *destLen;

View File

@ -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 */