diff options
author | Julien Cristau <jcristau@debian.org> | 2008-10-21 19:21:21 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-22 08:49:27 +1030 |
commit | 6626ad5cb9a9fab9bd3c3d8a36d8b09b8cb037a0 (patch) | |
tree | 561b16572b468d3d9cd3c7d42d29597f7c5acdfb | |
parent | ae247ff09cb77d8e6ebc4505b44731e32b3a179b (diff) |
Fix TestBit() on 64bit
Reported by Albert Damen <albrt@gmx.net>
X.Org Bug#18150 <http://bugs.freedesktop.org/show_bug.cgi?id=18150>
(cherry picked from commit f57e8face94c9e6986b35ca2ec231e284b9f58cf)
-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 3d7a76f..d186be0 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -381,7 +381,7 @@ EvdevReadInput(InputInfoPtr pInfo) } } -#define TestBit(bit, array) (array[(bit) / LONG_BITS]) & (1 << ((bit) % LONG_BITS)) +#define TestBit(bit, array) (array[(bit) / LONG_BITS]) & (1L << ((bit) % LONG_BITS)) static void EvdevPtrCtrlProc(DeviceIntPtr device, PtrCtrl *ctrl) |