mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 09:44:28 +00:00
Don't crop long value from EvdevBitIsSet.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user