diff options
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 2 |
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) |