]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix Typo
authorW. Felix Handte <w@felixhandte.com>
Thu, 14 Jun 2018 18:52:46 +0000 (14:52 -0400)
committerW. Felix Handte <w@felixhandte.com>
Tue, 19 Jun 2018 17:01:21 +0000 (13:01 -0400)
lib/compress/zstd_opt.c

index 20a8ac2e005c379e4ea118cd0166459b3b4ad7b7..f638c150a34ff36d776227cb69915f05351198e5 100644 (file)
@@ -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) {