]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
removed wrong assertion
authorYann Collet <cyan@fb.com>
Wed, 15 Nov 2017 23:35:56 +0000 (15:35 -0800)
committerYann Collet <cyan@fb.com>
Wed, 15 Nov 2017 23:35:56 +0000 (15:35 -0800)
lib/compress/zstd_opt.c

index e3112085add565aca0839190e13567ab77116018..c3814f8d2ac044bdb884d53b4ecf6a14fdbc51f9 100644 (file)
@@ -271,7 +271,6 @@ FORCE_INLINE_TEMPLATE
             U32 const repOffset = (repCode==ZSTD_REP_NUM) ? (rep[0] - 1) : rep[repCode];
             U32 const repIndex = current - repOffset;
             U32 repLen = 0;
-            assert(repOffset <= current);
             assert(current >= dictLimit);
             if (!extDict /*static*/ || (repIndex>=dictLimit)) {
                 if ( (repOffset-1 /* intentional overflow, discards 0 and -1 */ < current-dictLimit)  /* within current mem segment */