Mercurial > sdl-ios-xcode
comparison src/joystick/linux/SDL_sysjoystick.c @ 3229:09172593e9b6
Fixed type size for test_bit()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 02 Aug 2009 20:45:11 +0000 |
parents | 0ea7b6bb4054 |
children | 11c079bb52a8 |
comparison
equal
deleted
inserted
replaced
3228:9ec661afdf5f | 3229:09172593e9b6 |
---|---|
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 long *) addr)[(nr) >> 5])) != 0) | 366 (((1UL << ((nr) & 31)) & (((const Uint32 *) 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]; |