diff options
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 | } |