summaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2017-09-21 20:16:20 +0300
committerMika Lindqvist <postmaster@raasu.org>2017-09-21 20:16:20 +0300
commit9a9a5c55f484db5e2e4ccd8989e5e5e7733ec5db (patch)
treef13e6023a0fb44863e5d8efbfeabd8ae07e8d2d5 /inflate.c
parent725f7bc04c68d648abbdda7af62a0d4fc24ca848 (diff)
[Issue #126] Fix implicit cast from unsigned char to int.
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 1b5a554..04f827c 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)