From: Quentin Carbonneaux Date: Mon, 11 Jan 2021 10:41:17 +0000 (-0800) Subject: fix forgotten numTagBits in getTagMask X-Git-Tag: v1.4.9^2~22^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0d5eca8fae75c44fe54f343a4b7c3ceada2e2f0;p=thirdparty%2Fzstd.git fix forgotten numTagBits in getTagMask --- diff --git a/lib/compress/zstd_ldm.c b/lib/compress/zstd_ldm.c index bbd3b4ea1..8a42f0a91 100644 --- a/lib/compress/zstd_ldm.c +++ b/lib/compress/zstd_ldm.c @@ -77,7 +77,7 @@ static U32 ZSTD_ldm_getChecksum(U64 hash, U32 numBitsToDiscard) * checked. */ static U64 ZSTD_ldm_getTagMask(U32 hbits, U32 hashRateLog) { - assert(numTagBits < 32 && hbits <= 32); + assert(hashRateLog < 32 && hbits <= 32); if (32 - hbits < hashRateLog) { return (((U64)1 << hashRateLog) - 1); } else {