aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
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}