From 5d2c09e856c19dd3c045378d0d5eae6ed870185d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 2 Aug 2009 20:45:11 +0000 Subject: [PATCH] Fixed type size for test_bit() --- src/joystick/linux/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index 98dd44dc4..049274c38 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -363,7 +363,7 @@ LogicalSuffix(int logicalno, char *namebuf, int len) #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)