Tentative fix for shifting -1 in libz.

This commit is contained in:
Dimitry Andric 2015-08-19 17:11:49 +00:00
parent b10d76f080
commit 4ca9a88ad0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/clang-trunk/; revision=286927

View File

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