Skip to content

Commit 3eee6e4

Browse files
make bool explicit
1 parent 1ea759d commit 3eee6e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/str_view.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,9 @@ char_compare(char const a, char const b) {
819819

820820
static inline bool
821821
bitset_set(size_t *const bitset, size_t const char_as_size_t) {
822-
return bitset[char_as_size_t / (8 * sizeof(*bitset))]
823-
|= (size_t)(1 << (char_as_size_t % (8 * sizeof(*bitset))));
822+
return (bitset[char_as_size_t / (8 * sizeof(*bitset))]
823+
|= (size_t)(1 << (char_as_size_t % (8 * sizeof(*bitset)))))
824+
!= 0;
824825
}
825826

826827
static inline bool

0 commit comments

Comments
 (0)