]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
using dict mls instead of src mls
authorBimba Shrestha <bimbashrestha@fb.com>
Fri, 12 Jun 2020 05:55:32 +0000 (22:55 -0700)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Sep 2020 22:51:52 +0000 (18:51 -0400)
lib/compress/zstd_lazy.c

index fd76a55bbeba948d55b5c2708f3eac768ea6019a..c6bcff87696038fff5b4a02aca3619bb2c2abb92 100644 (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];