From b174bc9f92a7563383e20fefca8538f2ab2d44cb Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Mon, 25 Jan 2021 16:47:37 -0800 Subject: [PATCH] Remove debug check for match beginning at start of window. --- deflate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deflate.c b/deflate.c index 4f781ab2..1707f75c 100644 --- a/deflate.c +++ b/deflate.c @@ -1201,10 +1201,8 @@ void check_match(deflate_state *s, Pos start, Pos match, int length) { fprintf(stderr, " start %u, match %u, length %d\n", start, match, length); z_error("invalid match length"); } - /* check that the match isn't at the beginning of the window and that it isn't at - * the same position as the start string - */ - if (match == 0 || match == start) { + /* check that the match isn't at the same position as the start string */ + if (match == start) { fprintf(stderr, " start %u, match %u, length %d\n", start, match, length); z_error("invalid match position"); } -- 2.47.2