From e29bc3a0097d8aa5a6a85ac6100277667e025014 Mon Sep 17 00:00:00 2001 From: Bimba Shrestha Date: Thu, 11 Jun 2020 22:55:32 -0700 Subject: [PATCH] using dict mls instead of src mls --- lib/compress/zstd_lazy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index fd76a55bb..c6bcff876 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -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]; -- 2.47.2