using dict mls instead of src mls

dev
Bimba Shrestha 2020-06-11 22:55:32 -07:00 committed by W. Felix Handte
parent 145c2d12f9
commit e29bc3a009
1 changed files with 2 additions and 1 deletions

View File

@ -567,7 +567,8 @@ size_t ZSTD_HcFindBestMatch_generic (
const U32 dmsMinChain = dmsSize > dmsChainSize ? dmsSize - dmsChainSize : 0;
const U32 bucketSize = (1 << DD_BLOG);
U32 hash = ZSTD_hashPtr(ip, dms->cParams.hashLog - DD_BLOG, mls) << DD_BLOG;
U32 hash = ZSTD_hashPtr(ip, dms->cParams.hashLog - DD_BLOG,
dms->cParams.minMatch) << DD_BLOG;
U32 attemptNb = 0;
matchIndex = dms->hashTable[hash];