Fix shift-negative-value warning on newer compiler versions.
error: shifting a negative signed value is undefined
This commit is contained in:
2
third_party/zlib/inflate.c
vendored
2
third_party/zlib/inflate.c
vendored
@ -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 :
|
||||
|
Reference in New Issue
Block a user