From 9a9a5c55f484db5e2e4ccd8989e5e5e7733ec5db Mon Sep 17 00:00:00 2001 From: Mika Lindqvist Date: Thu, 21 Sep 2017 20:16:20 +0300 Subject: [PATCH] [Issue #126] Fix implicit cast from unsigned char to int. --- inflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inflate.c b/inflate.c index 1b5a5548..04f827c3 100644 --- a/inflate.c +++ b/inflate.c @@ -483,7 +483,7 @@ static int updatewindow(z_stream *strm, const unsigned char *end, uint32_t copy) do { \ if (have == 0) goto inf_leave; \ have--; \ - hold += (*next++ << bits); \ + hold += ((unsigned)(*next++) << bits); \ bits += 8; \ } while (0) -- 2.47.2