Do not initialize unsigned with -1 in compress.c uncompr.c.
Sun compiler complained. Use (unsigned)0 - 1 instead.
This commit is contained in:
parent
43bfaba3d7
commit
bfcace04f9
@ -28,7 +28,7 @@ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
|
|||||||
{
|
{
|
||||||
z_stream stream;
|
z_stream stream;
|
||||||
int err;
|
int err;
|
||||||
const uInt max = -1;
|
const uInt max = (uInt)0 - 1;
|
||||||
uLong left;
|
uLong left;
|
||||||
|
|
||||||
left = *destLen;
|
left = *destLen;
|
||||||
|
@ -30,7 +30,7 @@ int ZEXPORT uncompress (dest, destLen, source, sourceLen)
|
|||||||
{
|
{
|
||||||
z_stream stream;
|
z_stream stream;
|
||||||
int err;
|
int err;
|
||||||
const uInt max = -1;
|
const uInt max = (uInt)0 - 1;
|
||||||
uLong left;
|
uLong left;
|
||||||
Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */
|
Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user