Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)
authorCouriersud <couriersud@arcor.de>
Sun, 11 Jan 2009 23:39:11 +0000
changeset 3022db20dde98dd3
parent 3021 f3dcf04412cf
child 3023 d72a0dd80e8b
Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)
src/joystick/linux/SDL_sysjoystick.c
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Sun Jan 11 04:46:42 2009 +0000
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Sun Jan 11 23:39: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 int *) addr)[(nr) >> 5])) != 0)
     1.8 +	(((1UL << ((nr) & 31)) & (((const unsigned long *) addr)[(nr) >> 5])) != 0)
     1.9  
    1.10  static int
    1.11  EV_IsJoystick(int fd)