diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2020-08-29 17:26:18 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-08-31 13:22:54 +0200 |
commit | 93ae5483d8066ab1054b3fe9c398a7422905fdef (patch) | |
tree | d6731b725fa24359822548c74ced08703f4114c2 /deflate_medium.c | |
parent | de160d6585250c368136ff642534deda6d8890a3 (diff) |
Fix numerous sign-conversion warnings in compare256/compare258 and
longest_match related code.
Diffstat (limited to 'deflate_medium.c')
-rw-r--r-- | deflate_medium.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deflate_medium.c b/deflate_medium.c index d642c01..a5b1b9a 100644 --- a/deflate_medium.c +++ b/deflate_medium.c @@ -213,7 +213,7 @@ Z_INTERNAL block_state deflate_medium(deflate_state *s, int flush) { * of window index 0 (in particular we have to avoid a match * of the string with itself at the start of the input file). */ - current_match.match_length = functable.longest_match(s, hash_head); + current_match.match_length = (uint16_t)functable.longest_match(s, hash_head); current_match.match_start = s->match_start; if (UNLIKELY(current_match.match_length < MIN_MATCH)) current_match.match_length = 1; @@ -246,7 +246,7 @@ Z_INTERNAL block_state deflate_medium(deflate_state *s, int flush) { * of window index 0 (in particular we have to avoid a match * of the string with itself at the start of the input file). */ - next_match.match_length = functable.longest_match(s, hash_head); + next_match.match_length = (uint16_t)functable.longest_match(s, hash_head); next_match.match_start = s->match_start; if (UNLIKELY(next_match.match_start >= next_match.strstart)) { /* this can happen due to some restarts */ |