]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add missing parens around macro definition
authorNick Terrell <terrelln@fb.com>
Fri, 16 Dec 2022 00:22:26 +0000 (16:22 -0800)
committerNick Terrell <nickrterrell@gmail.com>
Fri, 16 Dec 2022 01:18:23 +0000 (17:18 -0800)
Fixes #3301.

lib/compress/huf_compress.c

index e94b398da87d6e8d193c7172774eb91126aff973..9d2b521bcca22f18531c3ba4dc894a87cfa848fc 100644 (file)
@@ -505,8 +505,8 @@ typedef struct {
  * Let buckets 166 to 192 represent all remaining counts up to RANK_POSITION_MAX_COUNT_LOG using log2 bucketing.
  */
 #define RANK_POSITION_MAX_COUNT_LOG 32
-#define RANK_POSITION_LOG_BUCKETS_BEGIN (RANK_POSITION_TABLE_SIZE - 1) - RANK_POSITION_MAX_COUNT_LOG - 1 /* == 158 */
-#define RANK_POSITION_DISTINCT_COUNT_CUTOFF RANK_POSITION_LOG_BUCKETS_BEGIN + ZSTD_highbit32(RANK_POSITION_LOG_BUCKETS_BEGIN) /* == 166 */
+#define RANK_POSITION_LOG_BUCKETS_BEGIN ((RANK_POSITION_TABLE_SIZE - 1) - RANK_POSITION_MAX_COUNT_LOG - 1 /* == 158 */)
+#define RANK_POSITION_DISTINCT_COUNT_CUTOFF (RANK_POSITION_LOG_BUCKETS_BEGIN + ZSTD_highbit32(RANK_POSITION_LOG_BUCKETS_BEGIN) /* == 166 */)
 
 /* Return the appropriate bucket index for a given count. See definition of
  * RANK_POSITION_DISTINCT_COUNT_CUTOFF for explanation of bucketing strategy.