Correct matchLength calculation and remove unnecessary functions

This commit is contained in:
senhuang42
2020-10-07 13:56:25 -04:00
parent 7dee62c287
commit 37617e23d7
2 changed files with 52 additions and 115 deletions
+1 -1
View File
@@ -2336,7 +2336,7 @@ static size_t ZSTD_buildSeqStore(ZSTD_CCtx* zc, const void* src, size_t srcSize)
if (curr > ms->nextToUpdate + 384)
ms->nextToUpdate = curr - MIN(192, (U32)(curr - ms->nextToUpdate - 384));
}
/* select and store sequences */
{ ZSTD_dictMode_e const dictMode = ZSTD_matchState_dictMode(ms);
size_t lastLLSize;