using dict mls instead of src mls

This commit is contained in:
Bimba Shrestha
2020-09-10 18:51:52 -04:00
committed by W. Felix Handte
parent 145c2d12f9
commit e29bc3a009
+2 -1
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];