Files
2016-05-17 14:40:13 -04:00

14 lines
484 B
Diff

diff --git a/src/inflate.c b/src/inflate.c
index 870f89b..c6f9daa 100644
--- a/src/inflate.c
+++ b/src/inflate.c
@@ -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 (unsigned)-1L << 16;
state = (struct inflate_state FAR *)strm->state;
return ((long)(state->back) << 16) +
(state->mode == COPY ? state->length :