[PATCH 05/18] Fix 64bit arch issue in synaptics eventcomm.c
Mark Kettenis
mark.kettenis at xs4all.nl
Fri Oct 8 11:48:10 PDT 2010
> From: Takashi Iwai <tiwai at suse.de>
> Date: Fri, 8 Oct 2010 19:22:29 +0200
Sorry, but it isn't obvious to me what issue this fixes.
> src/eventcomm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/eventcomm.c b/src/eventcomm.c
> index 1fc41ef..8a77788 100644
> --- 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"
>
More information about the xorg-devel
mailing list