Skip to content
Snippets Groups Projects
Commit 50e4a0ff authored by Ehsan Akhgari's avatar Ehsan Akhgari
Browse files

Bug 1202099 - Fix a clang 3.7 build warning (treated as error) in zlib

This is the following commit from upstream: e54e1299404101a5a9d0cf5e45512b543967f958
parent 41c99f72
No related branches found
No related tags found
No related merge requests found
......@@ -1504,9 +1504,10 @@ 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 (long)(((unsigned long)0 - 1) << 16);
state = (struct inflate_state FAR *)strm->state;
return ((long)(state->back) << 16) +
return (long)(((unsigned long)((long)state->back)) << 16) +
(state->mode == COPY ? state->length :
(state->mode == MATCH ? state->was - state->length : 0));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment