Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)

This commit is contained in:
Couriersud 2009-01-11 23:39:11 +00:00
parent 7b1b655f97
commit cb4074788c

View File

@ -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 int *) addr)[(nr) >> 5])) != 0)
(((1UL << ((nr) & 31)) & (((const unsigned long *) addr)[(nr) >> 5])) != 0)
static int
EV_IsJoystick(int fd)