Fixed type size for test_bit() SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 20:45:40 +0000
branchSDL-1.2
changeset 4181 cc865a058a0c
parent 4180 0a9a29fc00c2
child 4182 6512a61c2c73
Fixed type size for test_bit()
src/joystick/linux/SDL_sysjoystick.c
--- 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)
 {