]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Deflate_fast does not have 'prev_length', fix comment.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sun, 3 May 2026 18:07:34 +0000 (20:07 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 5 May 2026 10:21:26 +0000 (12:21 +0200)
deflate_fast.c

index adf0113c297dfdb76ea8545ce93024758d3ae09e..22311d73dcdc9e49e8ddc211782cad205dfad558 100644 (file)
@@ -49,7 +49,7 @@ Z_INTERNAL block_state deflate_fast(deflate_state *s, int flush) {
             int64_t dist = (int64_t)s->strstart - hash_head;
             lc = (uint8_t)str_val;
 
-            /* Find the longest match, discarding those <= prev_length.
+            /* Find the longest match.
              * At this point we have always match length < WANT_MIN_MATCH
              */
             if (dist <= MAX_DIST(s) && dist > 0 && hash_head != 0) {