# HG changeset patch # User Sam Lantinga # Date 1249245940 0 # Node ID cc865a058a0c1f69a14d523a4a546442af483b5a # Parent 0a9a29fc00c281575809ca78588afc14adcd7626 Fixed type size for test_bit() diff -r 0a9a29fc00c2 -r cc865a058a0c src/joystick/linux/SDL_sysjoystick.c --- a/src/joystick/linux/SDL_sysjoystick.c Wed Jul 01 19:06:31 2009 +0000 +++ b/src/joystick/linux/SDL_sysjoystick.c Sun Aug 02 20:45:40 2009 +0000 @@ -371,7 +371,7 @@ #if SDL_INPUT_LINUXEV #define test_bit(nr, addr) \ - (((1UL << ((nr) & 31)) & (((const unsigned int *) addr)[(nr) >> 5])) != 0) + (((1UL << ((nr) & 31)) & (((const Uint32 *) addr)[(nr) >> 5])) != 0) static int EV_IsJoystick(int fd) {