# HG changeset patch # User Sam Lantinga # Date 1249245911 0 # Node ID 09172593e9b6bbbc2236072345872dbc0125e223 # Parent 9ec661afdf5f90d52d6d8250ec54d66aa075d266 Fixed type size for test_bit() diff -r 9ec661afdf5f -r 09172593e9b6 src/joystick/linux/SDL_sysjoystick.c --- a/src/joystick/linux/SDL_sysjoystick.c Sun Aug 02 18:40:18 2009 +0000 +++ b/src/joystick/linux/SDL_sysjoystick.c Sun Aug 02 20:45:11 2009 +0000 @@ -363,7 +363,7 @@ #if SDL_INPUT_LINUXEV #define test_bit(nr, addr) \ - (((1UL << ((nr) & 31)) & (((const unsigned long *) addr)[(nr) >> 5])) != 0) + (((1UL << ((nr) & 31)) & (((const Uint32 *) addr)[(nr) >> 5])) != 0) static int EV_IsJoystick(int fd)