]> git.lizzy.rs Git - zlib.git/blobdiff - inflate.c
Clean up portability for shifts and integer sizes.
[zlib.git] / inflate.c
index a71841670eff6476d3b86a49dcf91acdf2e7bb3f..72e8438d7eb45e7037b86a65619d6f2dd8893af8 100644 (file)
--- a/inflate.c
+++ b/inflate.c
@@ -243,7 +243,7 @@ int value;
     }
     if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR;
     value &= (1L << bits) - 1;
-    state->hold += value << state->bits;
+    state->hold += (unsigned)value << state->bits;
     state->bits += bits;
     return Z_OK;
 }