Fixed type size for test_bit() SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 20:45:40 +0000
branchSDL-1.2
changeset 4181cc865a058a0c
parent 4180 0a9a29fc00c2
child 4182 6512a61c2c73
Fixed type size for test_bit()
src/joystick/linux/SDL_sysjoystick.c
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Wed Jul 01 19:06:31 2009 +0000
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Sun Aug 02 20:45:40 2009 +0000
     1.3 @@ -371,7 +371,7 @@
     1.4  
     1.5  #if SDL_INPUT_LINUXEV
     1.6  #define test_bit(nr, addr) \
     1.7 -	(((1UL << ((nr) & 31)) & (((const unsigned int *) addr)[(nr) >> 5])) != 0)
     1.8 +	(((1UL << ((nr) & 31)) & (((const Uint32 *) addr)[(nr) >> 5])) != 0)
     1.9  
    1.10  static int EV_IsJoystick(int fd)
    1.11  {