mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 09:44:40 +00:00
Fix 64bit arch issue in synaptics eventcomm.c
In C, "1" is an integer, not an unsigned long. Thus (1 << 33) doesn't give you the 33th bit shift, but it's undefined. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
5719377737
commit
4d22aa06fd
@@ -49,7 +49,7 @@
|
||||
#define NBITS(x) (((x) + LONG_BITS - 1) / LONG_BITS)
|
||||
#define OFF(x) ((x) % LONG_BITS)
|
||||
#define LONG(x) ((x) / LONG_BITS)
|
||||
#define TEST_BIT(bit, array) (array[LONG(bit)] & (1 << OFF(bit)))
|
||||
#define TEST_BIT(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1)
|
||||
|
||||
/*****************************************************************************
|
||||
* Function Definitions
|
||||
|
||||
Reference in New Issue
Block a user