From: W. Felix Handte Date: Thu, 14 Jun 2018 18:52:46 +0000 (-0400) Subject: Fix Typo X-Git-Tag: v1.3.5~3^2~10^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce743312e2e91c35de209616dec550bf65b1849d;p=thirdparty%2Fzstd.git Fix Typo --- diff --git a/lib/compress/zstd_opt.c b/lib/compress/zstd_opt.c index 20a8ac2e0..f638c150a 100644 --- a/lib/compress/zstd_opt.c +++ b/lib/compress/zstd_opt.c @@ -560,7 +560,7 @@ U32 ZSTD_insertBtAndGetAllMatches ( & (((U32)((dictLimit-1) - repIndex) >= 3) ) /* intentional overflow : do not test positions overlapping 2 memory segments */)) { const BYTE* const repMatch = dmsBase + repIndex - dmsIndexDelta; if (ZSTD_readMINMATCH(ip, minMatch) == ZSTD_readMINMATCH(repMatch, minMatch)) { - repLen = (U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dictEnd, prefixStart) + minMatch; + repLen = (U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dmsEnd, prefixStart) + minMatch; } } } /* save longer solution */ if (repLen > bestLength) {