diff options
author | David Robillard <d@drobilla.net> | 2018-11-14 14:06:46 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-14 14:10:28 +0100 |
commit | 7818b30f16479220d762a4aded1551e2c8aae4df (patch) | |
tree | e70c3a5db09338e883d2a08a3f01eadb0e583e44 | |
parent | e0e99c0b0cf21f0d1375aac5c8d964431d9ec536 (diff) | |
download | zix-7818b30f16479220d762a4aded1551e2c8aae4df.tar.gz zix-7818b30f16479220d762a4aded1551e2c8aae4df.tar.bz2 zix-7818b30f16479220d762a4aded1551e2c8aae4df.zip |
Wrap macro argument in parenthesis
-rw-r--r-- | zix/bitset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zix/bitset.h b/zix/bitset.h index 334b9ca..31be3c5 100644 --- a/zix/bitset.h +++ b/zix/bitset.h @@ -49,8 +49,8 @@ typedef uint8_t ZixBitsetTally; The number of bitset elements needed for the given number of bits. */ #define ZIX_BITSET_ELEMS(n_bits) \ - ((n_bits / ZIX_BITSET_BITS_PER_ELEM) + \ - (n_bits % ZIX_BITSET_BITS_PER_ELEM ? 1 : 0)) + (((n_bits) / ZIX_BITSET_BITS_PER_ELEM) + \ + ((n_bits) % ZIX_BITSET_BITS_PER_ELEM ? 1 : 0)) /** Clear a Bitset. |