loading dict using new algorithm

This commit is contained in:
Bimba Shrestha
2020-09-10 18:51:52 -04:00
committed by W. Felix Handte
parent 22705f0c93
commit 628559d0e4
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -580,7 +580,7 @@ size_t ZSTD_HcFindBestMatch_generic (
/* save best solution */
if (currentMl > ml) {
ml = currentMl;
*offsetPtr = current - (matchIndex + dmsIndexDelta) + ZSTD_REP_MOVE;
*offsetPtr = curr - (matchIndex + dmsIndexDelta) + ZSTD_REP_MOVE;
if (ip+currentMl == iLimit) break; /* best possible, avoids read overflow on next attempt */
}