fix forgotten numTagBits in getTagMask

This commit is contained in:
Quentin Carbonneaux 2021-01-11 02:41:17 -08:00
parent 1e65711ca5
commit e0d5eca8fa

View File

@ -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 {