]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Use longest_match_slow in deflate_slow.
authorNathan Moinvaziri <nathan@nathanm.com>
Tue, 22 Jun 2021 03:39:47 +0000 (20:39 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 25 Jun 2021 18:09:14 +0000 (20:09 +0200)
deflate_slow.c

index e0232c0a13687c7e1b54f14831b75ea2b443c48b..19bd09fb6ef72884f2ac687749dbc14b2a4bec33 100644 (file)
@@ -55,7 +55,7 @@ Z_INTERNAL block_state deflate_slow(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).
              */
-            match_len = functable.longest_match(s, hash_head);
+            match_len = functable.longest_match_slow(s, hash_head);
             /* longest_match() sets match_start */
 
             if (match_len <= 5 && (s->strategy == Z_FILTERED)) {