From: Nathan Moinvaziri Date: Sun, 13 Jun 2021 21:59:32 +0000 (-0700) Subject: Use STD_MIN_MATCH instead of WANT_MIN_MATCH in deflate_slow for fast-zlib. X-Git-Tag: 2.1.0-beta1~550 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=823a61bc972b1c08267b752a84dd959160c9f73d;p=thirdparty%2Fzlib-ng.git Use STD_MIN_MATCH instead of WANT_MIN_MATCH in deflate_slow for fast-zlib. --- diff --git a/deflate_slow.c b/deflate_slow.c index 0cb40f5ca..a3af11bcf 100644 --- a/deflate_slow.c +++ b/deflate_slow.c @@ -68,8 +68,8 @@ Z_INTERNAL block_state deflate_slow(deflate_state *s, int flush) { /* If there was a match at the previous step and the current * match is not better, output the previous match: */ - if (s->prev_length >= WANT_MIN_MATCH && match_len <= s->prev_length) { - unsigned int max_insert = s->strstart + s->lookahead - WANT_MIN_MATCH; + if (s->prev_length >= STD_MIN_MATCH && match_len <= s->prev_length) { + unsigned int max_insert = s->strstart + s->lookahead - STD_MIN_MATCH; /* Do not insert strings in hash table beyond this. */ check_match(s, s->strstart-1, s->prev_match, s->prev_length);