File xf86-input-synaptics-64bit-fix.diff of Package xorg-x11-driver-input

From 88dad10aa422da6b715582a2c6c087592145f53b Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Thu, 17 Jun 2010 20:07:17 +0200
Subject: [PATCH 7/7] Fix 64bit arch issue in synaptics eventcomm.c

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 src/eventcomm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -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)
 
 #define SYNAPTICS_LED_SYS_FILE	"/sys/class/leds/psmouse::synaptics/brightness"
 
openSUSE Build Service is sponsored by