summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index f99e0d5..028a9e1 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -176,7 +176,7 @@ static size_t EvdevCountBits(unsigned long *array, size_t nlongs)
static inline int EvdevBitIsSet(const unsigned long *array, int bit)
{
- return array[bit / LONG_BITS] & (1LL << (bit % LONG_BITS));
+ return !!(array[bit / LONG_BITS] & (1LL << (bit % LONG_BITS)));
}
static inline void EvdevSetBit(unsigned long *array, int bit)