diff --git a/zlib/inflate.c b/zlib/inflate.c index 3a945f3ce..656cd6464 100644 --- a/zlib/inflate.c +++ b/zlib/inflate.c @@ -1524,7 +1524,7 @@ z_streamp strm; struct inflate_state FAR *state; if (strm == Z_NULL || strm->state == Z_NULL) - return (long)(((unsigned long)0 - 1) << 16); + return ~0UL << 16; state = (struct inflate_state FAR *)strm->state; return ((long)(state->back) << 16) + (state->mode == COPY ? state->length :