summaryrefslogtreecommitdiff
path: root/deflate_medium.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-10-01 22:57:38 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-11-02 17:01:58 +0100
commita659d7f071bcb05117cf01148def547cbfd21b9c (patch)
tree2ff7fc6ce1641774e3d184df3f261ff7e9b8fbfa /deflate_medium.c
parent2aa9b7a7a111c870dbf069aef954d7c061f75b68 (diff)
Fixed casting warnings when comparing MAX_DIST.
deflate_medium.c(127,76): warning C4244: '=': conversion from 'unsigned int' to 'Pos', possible loss of data
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;