summaryrefslogtreecommitdiff
path: root/zlib/inflate.c
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2020-01-04 00:26:19 +0100
committerMatthias Melcher <git@matthiasm.com>2020-01-04 00:26:19 +0100
commitebec2629a2ca87349c5fb52c1b7c38583447fd29 (patch)
treec48e9392df76394b2577f347beec4a319e292b67 /zlib/inflate.c
parent5bb880dfa2e90ee713d2443ce4b6517a7b031a50 (diff)
I will revers my change.
Diffstat (limited to 'zlib/inflate.c')
-rw-r--r--zlib/inflate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zlib/inflate.c b/zlib/inflate.c
index f84394c1f..870f89bb4 100644
--- a/zlib/inflate.c
+++ b/zlib/inflate.c
@@ -1504,8 +1504,7 @@ z_streamp strm;
{
struct inflate_state FAR *state;
- if (strm == Z_NULL || strm->state == Z_NULL)
- return ((unsigned)-1L) << 16;
+ if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
state = (struct inflate_state FAR *)strm->state;
return ((long)(state->back) << 16) +
(state->mode == COPY ? state->length :