diff src/joystick/linux/SDL_sysjoystick.c @ 3229:09172593e9b6

Fixed type size for test_bit()
author Sam Lantinga <slouken@libsdl.org>
date Sun, 02 Aug 2009 20:45:11 +0000
parents 0ea7b6bb4054
children 11c079bb52a8
line wrap: on
line diff
--- 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)