Skip to content

Commit 47fd95b

Browse files
committed
bits BUGFIX operator priority
Refs #2455
1 parent 99e7b43 commit 47fd95b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins_types/bits.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ lyplg_type_bits_is_bit_set(const char *bitmap, uint32_t size_bits, uint32_t bit_
6161
uint32_t size;
6262

6363
/* get size in bytes */
64-
size = size_bits / 8 + (size_bits % 8) ? 1 : 0;
64+
size = size_bits / 8 + ((size_bits % 8) ? 1 : 0);
6565

6666
/* find the byte with our bit */
6767
(void)size;
@@ -93,7 +93,7 @@ bits_bit_set(char *bitmap, uint32_t size_bits, uint32_t bit_position)
9393
uint32_t size;
9494

9595
/* get size in bytes */
96-
size = size_bits / 8 + (size_bits % 8) ? 1 : 0;
96+
size = size_bits / 8 + ((size_bits % 8) ? 1 : 0);
9797

9898
/* find the byte with our bit */
9999
(void)size;

0 commit comments

Comments
 (0)