summaryrefslogtreecommitdiff
path: root/deflate_medium.c
diff options
context:
space:
mode:
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 8335942..dad550c 100644
--- a/deflate_medium.c
+++ b/deflate_medium.c
@@ -124,7 +124,7 @@ static void fizzle_matches(deflate_state *s, struct match *current, struct match
n = *next;
/* step one: try to move the "next" match to the left as much as possible */
- limit = next->strstart > MAX_DIST(s) ? next->strstart - MAX_DIST(s) : 0;
+ limit = next->strstart > MAX_DIST(s) ? next->strstart - (Pos)MAX_DIST(s) : 0;
match = s->window + n.match_start - 1;
orig = s->window + n.strstart - 1;