diff src/joystick/linux/SDL_sysjoystick.c @ 4181:cc865a058a0c SDL-1.2

Fixed type size for test_bit()
author Sam Lantinga <slouken@libsdl.org>
date Sun, 02 Aug 2009 20:45:40 +0000
parents a1b03ba2fcd0
children dbdf8b108e31
line wrap: on
line diff
--- a/src/joystick/linux/SDL_sysjoystick.c	Wed Jul 01 19:06:31 2009 +0000
+++ b/src/joystick/linux/SDL_sysjoystick.c	Sun Aug 02 20:45:40 2009 +0000
@@ -371,7 +371,7 @@
 
 #if SDL_INPUT_LINUXEV
 #define test_bit(nr, addr) \
-	(((1UL << ((nr) & 31)) & (((const unsigned int *) addr)[(nr) >> 5])) != 0)
+	(((1UL << ((nr) & 31)) & (((const Uint32 *) addr)[(nr) >> 5])) != 0)
 
 static int EV_IsJoystick(int fd)
 {