mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)
This commit is contained in:
parent
7b1b655f97
commit
cb4074788c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user