summaryrefslogtreecommitdiff
path: root/deflate_medium.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-03-29 12:03:58 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-04-16 13:05:23 +0200
commitc3c9ab51cb6274ad5cdd1d48c31fe047a72f7d57 (patch)
treeab735e2128f07db6231d8ecbab62c4d5f4252753 /deflate_medium.c
parentee1c9bc0be715d788513ac3cbfe6559f91c6b1d3 (diff)
Fixed signed/unsigned mismatch in deflate_medium in MSVC.
Diffstat (limited to 'deflate_medium.c')
-rw-r--r--deflate_medium.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deflate_medium.c b/deflate_medium.c
index 07ce71f..43fb0bf 100644
--- a/deflate_medium.c
+++ b/deflate_medium.c
@@ -261,7 +261,7 @@ ZLIB_INTERNAL block_state deflate_medium(deflate_state *s, int flush) {
insert_match(s, current_match);
/* now, look ahead one */
- if (s->lookahead > MIN_LOOKAHEAD && (current_match.strstart + current_match.match_length) < (s->window_size - MIN_LOOKAHEAD)) {
+ if (s->lookahead > MIN_LOOKAHEAD && (uint32_t)(current_match.strstart + current_match.match_length) < (s->window_size - MIN_LOOKAHEAD)) {
s->strstart = current_match.strstart + current_match.match_length;
hash_head = functable.insert_string(s, s->strstart, 1);