]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove Assert that is always true due to limited range of data-type
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sat, 2 Nov 2024 15:36:24 +0000 (16:36 +0100)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Tue, 11 Feb 2025 22:20:49 +0000 (23:20 +0100)
deflate_p.h

index abcc8b1c7c1255e211d7979afa2fdbcb34eb5fea..7e5a85a95dcfc1971b967c2a4820e5a91398746c 100644 (file)
@@ -70,7 +70,6 @@ static inline int zng_tr_tally_lit(deflate_state *s, unsigned char c) {
 #endif
     s->dyn_ltree[c].Freq++;
     Tracevv((stderr, "%c", c));
-    Assert(c <= (STD_MAX_MATCH-STD_MIN_MATCH), "zng_tr_tally: bad literal");
     return (s->sym_next == s->sym_end);
 }