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 3022 db20dde98dd3
parent 3021 f3dcf04412cf
child 3023 d72a0dd80e8b
Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)
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)