Mercurial > sdl-ios-xcode
comparison src/joystick/linux/SDL_sysjoystick.c @ 3022:db20dde98dd3
Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)
author | Couriersud <couriersud@arcor.de> |
---|---|
date | Sun, 11 Jan 2009 23:39:11 +0000 |
parents | 8cc00819c8d6 |
children | cfc8b35ad6b1 |
comparison
equal
deleted
inserted
replaced
3021:f3dcf04412cf | 3022:db20dde98dd3 |
---|---|
361 | 361 |
362 #endif /* USE_LOGICAL_JOYSTICKS */ | 362 #endif /* USE_LOGICAL_JOYSTICKS */ |
363 | 363 |
364 #if SDL_INPUT_LINUXEV | 364 #if SDL_INPUT_LINUXEV |
365 #define test_bit(nr, addr) \ | 365 #define test_bit(nr, addr) \ |
366 (((1UL << ((nr) & 31)) & (((const unsigned int *) addr)[(nr) >> 5])) != 0) | 366 (((1UL << ((nr) & 31)) & (((const unsigned long *) addr)[(nr) >> 5])) != 0) |
367 | 367 |
368 static int | 368 static int |
369 EV_IsJoystick(int fd) | 369 EV_IsJoystick(int fd) |
370 { | 370 { |
371 unsigned long evbit[40]; | 371 unsigned long evbit[40]; |