We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27ef026 commit e54e129Copy full SHA for e54e129
inflate.c
@@ -1506,9 +1506,10 @@ z_streamp strm;
1506
{
1507
struct inflate_state FAR *state;
1508
1509
- if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
+ if (strm == Z_NULL || strm->state == Z_NULL)
1510
+ return (long)(((unsigned long)0 - 1) << 16);
1511
state = (struct inflate_state FAR *)strm->state;
- return ((long)(state->back) << 16) +
1512
+ return (long)(((unsigned long)((long)state->back)) << 16) +
1513
(state->mode == COPY ? state->length :
1514
(state->mode == MATCH ? state->was - state->length : 0));
1515
}
0 commit comments