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

Sun compiler complained.  Use (unsigned)0 - 1 instead.
pull/115/head
Mark Adler 10 years ago
parent 43bfaba3d7
commit bfcace04f9
  1. 2
      compress.c
  2. 2
      uncompr.c

@ -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;

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

Loading…
Cancel
Save