diff options
| -rw-r--r-- | match_tpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/match_tpl.h b/match_tpl.h index ddfaf4082b..24bf01de79 100644 --- a/match_tpl.h +++ b/match_tpl.h @@ -66,7 +66,7 @@ ZLIB_INTERNAL int32_t LONGEST_MATCH(deflate_state *const s, Pos cur_match) { * Stop when cur_match becomes <= limit. To simplify the code, * we prevent matches with the string of window index 0 */ - limit = strstart > MAX_DIST(s) ? strstart - MAX_DIST(s) : 0; + limit = strstart > MAX_DIST(s) ? (Pos)(strstart - MAX_DIST(s)) : 0; scan_start = *(bestcmp_t *)(scan); scan_end = *(bestcmp_t *)(scan+best_len-1); |
