From 44ae761dc2047038dc42a7e5a162d042fc392d2b Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 5 Sep 2015 18:56:55 -0700 Subject: Clean up portability for shifts and integer sizes. --- inflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inflate.c') diff --git a/inflate.c b/inflate.c index a718416..72e8438 100644 --- 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; } -- cgit v1.2.3-55-g6feb