summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-10-21 19:21:21 +0200
committerPeter Hutterer <peter.hutterer@redhat.com>2008-10-23 17:14:52 +1030
commitc7893b212d4d633c3229901bace6571d67ec1315 (patch)
tree0facc483c9473af36fdc82fb15159e5323d44db9
parente9dd721e2dd24e9bdc5092bcc0bbe94a2ac065ff (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 1a664ac..9ad96f9 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -390,7 +390,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)