fix clang compiler warnings (including fixing a bug revealed in cmdhftopaz.c)

This commit is contained in:
pwpiwi 2017-04-11 18:55:33 +02:00
commit 31a29271b9
5 changed files with 7 additions and 7 deletions

View file

@ -1523,7 +1523,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 ~0UL << 16;
state = (struct inflate_state FAR *)strm->state;
return ((long)(state->back) << 16) +
(state->mode == COPY ? state->length :