Fixed type size for test_bit()
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 20:45:11 +0000
changeset 3229 09172593e9b6
parent 3228 9ec661afdf5f
child 3230 816a7a65a59a
Fixed type size for test_bit()
src/joystick/linux/SDL_sysjoystick.c
--- a/src/joystick/linux/SDL_sysjoystick.c	Sun Aug 02 18:40:18 2009 +0000
+++ b/src/joystick/linux/SDL_sysjoystick.c	Sun Aug 02 20:45:11 2009 +0000
@@ -363,7 +363,7 @@
 
 #if SDL_INPUT_LINUXEV
 #define test_bit(nr, addr) \
-	(((1UL << ((nr) & 31)) & (((const unsigned long *) addr)[(nr) >> 5])) != 0)
+	(((1UL << ((nr) & 31)) & (((const Uint32 *) addr)[(nr) >> 5])) != 0)
 
 static int
 EV_IsJoystick(int fd)