From: Bimba Shrestha Date: Fri, 12 Jun 2020 05:55:32 +0000 (-0700) Subject: using dict mls instead of src mls X-Git-Tag: v1.4.7~81^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e29bc3a0097d8aa5a6a85ac6100277667e025014;p=thirdparty%2Fzstd.git using dict mls instead of src mls --- 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];