Commit 3e968cec authored by Couriersud's avatar Couriersud

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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403484
parent fea75bca
...@@ -363,7 +363,7 @@ LogicalSuffix(int logicalno, char *namebuf, int len) ...@@ -363,7 +363,7 @@ LogicalSuffix(int logicalno, char *namebuf, int len)
#if SDL_INPUT_LINUXEV #if SDL_INPUT_LINUXEV
#define test_bit(nr, addr) \ #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 static int
EV_IsJoystick(int fd) EV_IsJoystick(int fd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment