Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)
Browse files Browse the repository at this point in the history
  • Loading branch information
Couriersud committed Jan 11, 2009
1 parent a5d1537 commit 2068c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -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)
Expand Down

0 comments on commit 2068c9b

Please sign in to comment.