diff src/joystick/linux/SDL_sysjoystick.c @ 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 8cc00819c8d6
children cfc8b35ad6b1
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)