fix forgotten numTagBits in getTagMask
This commit is contained in:
1 parent
1e65711ca5
commit
e0d5eca8fa
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user