Fix shift-negative-value warning on newer compiler versions.

error: shifting a negative signed value is undefined
This commit is contained in:
Nicholas Hastings
2016-03-17 15:12:26 -04:00
parent 19dd940b22
commit 79a6dc9501
3 changed files with 3 additions and 3 deletions

View File

@ -1504,7 +1504,7 @@ z_streamp strm;
{
struct inflate_state FAR *state;
if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
if (strm == Z_NULL || strm->state == Z_NULL) return -1UL << 16;
state = (struct inflate_state FAR *)strm->state;
return ((long)(state->back) << 16) +
(state->mode == COPY ? state->length :