diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2020-06-02 09:17:56 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-06-08 21:16:31 +0200 |
commit | bf01f6b9ea4b2095de7d3d456fd5963f1e8fe05f (patch) | |
tree | 913006ca532f0596d311d18e82d03625f2f5f70d /deflate_quick.c | |
parent | 8095fa71f0187c99bfbb364c99b563ecf57eadb9 (diff) |
Move check for match length in deflate_quick to check_match.
Diffstat (limited to 'deflate_quick.c')
-rw-r--r-- | deflate_quick.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/deflate_quick.c b/deflate_quick.c index cd79af4..70a7e34 100644 --- a/deflate_quick.c +++ b/deflate_quick.c @@ -68,9 +68,6 @@ ZLIB_INTERNAL block_state deflate_quick(deflate_state *s, int flush) { if (match_len > s->lookahead) match_len = s->lookahead; - if (match_len > MAX_MATCH) - match_len = MAX_MATCH; - check_match(s, s->strstart, hash_head, match_len); zng_tr_emit_dist(s, static_ltree, static_dtree, match_len - MIN_MATCH, dist); |