summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/macros.h b/src/macros.h
index 903b681e..2b0a067b 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -781,19 +781,19 @@ of_le_double_ptr_write(void *_Nonnull ptr, double value)
static OF_INLINE bool
of_bitset_isset(unsigned char *_Nonnull storage, size_t idx)
{
- return storage[idx / 8] & (1 << (idx % 8));
+ return storage[idx / 8] & (1u << (idx % 8));
}
static OF_INLINE void
of_bitset_set(unsigned char *_Nonnull storage, size_t idx)
{
- storage[idx / 8] |= (1 << (idx % 8));
+ storage[idx / 8] |= (1u << (idx % 8));
}
static OF_INLINE void
of_bitset_clear(unsigned char *_Nonnull storage, size_t idx)
{
- storage[idx / 8] &= ~(1 << (idx % 8));
+ storage[idx / 8] &= ~(1u << (idx % 8));
}
static OF_INLINE char *_Nullable