Fixed type size for test_bit()
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 20:45:11 +0000
changeset 322909172593e9b6
parent 3228 9ec661afdf5f
child 3230 816a7a65a59a
Fixed type size for test_bit()
src/joystick/linux/SDL_sysjoystick.c
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Sun Aug 02 18:40:18 2009 +0000
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Sun Aug 02 20:45:11 2009 +0000
     1.3 @@ -363,7 +363,7 @@
     1.4  
     1.5  #if SDL_INPUT_LINUXEV
     1.6  #define test_bit(nr, addr) \
     1.7 -	(((1UL << ((nr) & 31)) & (((const unsigned long *) addr)[(nr) >> 5])) != 0)
     1.8 +	(((1UL << ((nr) & 31)) & (((const Uint32 *) addr)[(nr) >> 5])) != 0)
     1.9  
    1.10  static int
    1.11  EV_IsJoystick(int fd)