]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix forgotten numTagBits in getTagMask
authorQuentin Carbonneaux <quentin@c9x.me>
Mon, 11 Jan 2021 10:41:17 +0000 (02:41 -0800)
committerQuentin Carbonneaux <quentin@c9x.me>
Wed, 20 Jan 2021 08:54:20 +0000 (00:54 -0800)
lib/compress/zstd_ldm.c

index bbd3b4ea179efd6bbd9a16c3ceb55ec681910b34..8a42f0a913ea504c773687b1f53b0b9105d0bb99 100644 (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 {