diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2017-09-21 20:16:20 +0300 |
---|---|---|
committer | Mika Lindqvist <postmaster@raasu.org> | 2017-09-21 20:16:20 +0300 |
commit | 9a9a5c55f484db5e2e4ccd8989e5e5e7733ec5db (patch) | |
tree | f13e6023a0fb44863e5d8efbfeabd8ae07e8d2d5 /inflate.c | |
parent | 725f7bc04c68d648abbdda7af62a0d4fc24ca848 (diff) |
[Issue #126] Fix implicit cast from unsigned char to int.
Diffstat (limited to 'inflate.c')
-rw-r--r-- | inflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |