# HG changeset patch # User Couriersud # Date 1231717151 0 # Node ID db20dde98dd3c72df267f85737b9194deb701e16 # Parent f3dcf04412cfc87340b042bd5dbae9574aca5fe5 Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit) diff -r f3dcf04412cf -r db20dde98dd3 src/joystick/linux/SDL_sysjoystick.c --- a/src/joystick/linux/SDL_sysjoystick.c Sun Jan 11 04:46:42 2009 +0000 +++ b/src/joystick/linux/SDL_sysjoystick.c Sun Jan 11 23:39:11 2009 +0000 @@ -363,7 +363,7 @@ #if SDL_INPUT_LINUXEV #define test_bit(nr, addr) \ - (((1UL << ((nr) & 31)) & (((const unsigned int *) addr)[(nr) >> 5])) != 0) + (((1UL << ((nr) & 31)) & (((const unsigned long *) addr)[(nr) >> 5])) != 0) static int EV_IsJoystick(int fd)