Mercurial > sdl-ios-xcode
changeset 3022:db20dde98dd3
Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)
author | Couriersud <couriersud@arcor.de> |
---|---|
date | Sun, 11 Jan 2009 23:39:11 +0000 |
parents | f3dcf04412cf |
children | d72a0dd80e8b |
files | src/joystick/linux/SDL_sysjoystick.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)