diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2015-09-05 18:56:55 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2015-09-05 18:56:55 -0700 |
commit | 44ae761dc2047038dc42a7e5a162d042fc392d2b (patch) | |
tree | e197e5197395480ec86a3fa0154f4a5d784a4c99 /inflate.c | |
parent | e54e1299404101a5a9d0cf5e45512b543967f958 (diff) | |
download | zlib-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | } |