aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2015-09-05 18:56:55 -0700
committerMark Adler <madler@alumni.caltech.edu>2015-09-05 18:56:55 -0700
commit44ae761dc2047038dc42a7e5a162d042fc392d2b (patch)
treee197e5197395480ec86a3fa0154f4a5d784a4c99 /inflate.c
parente54e1299404101a5a9d0cf5e45512b543967f958 (diff)
downloadzlib-44ae761dc2047038dc42a7e5a162d042fc392d2b.tar.gz
zlib-44ae761dc2047038dc42a7e5a162d042fc392d2b.tar.bz2
zlib-44ae761dc2047038dc42a7e5a162d042fc392d2b.zip
Clean up portability for shifts and integer sizes.
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inflate.c b/inflate.c
index a718416..72e8438 100644
--- a/inflate.c
+++ b/inflate.c
@@ -243,7 +243,7 @@ int value;
243 } 243 }
244 if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR; 244 if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR;
245 value &= (1L << bits) - 1; 245 value &= (1L << bits) - 1;
246 state->hold += value << state->bits; 246 state->hold += (unsigned)value << state->bits;
247 state->bits += bits; 247 state->bits += bits;
248 return Z_OK; 248 return Z_OK;
249} 249}