Mercurial > sdl-ios-xcode
comparison src/joystick/linux/SDL_sysjoystick.c @ 4181:cc865a058a0c SDL-1.2
Fixed type size for test_bit()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 02 Aug 2009 20:45:40 +0000 |
parents | a1b03ba2fcd0 |
children | dbdf8b108e31 |
comparison
equal
deleted
inserted
replaced
4180:0a9a29fc00c2 | 4181:cc865a058a0c |
---|---|
369 | 369 |
370 #endif /* USE_LOGICAL_JOYSTICKS */ | 370 #endif /* USE_LOGICAL_JOYSTICKS */ |
371 | 371 |
372 #if SDL_INPUT_LINUXEV | 372 #if SDL_INPUT_LINUXEV |
373 #define test_bit(nr, addr) \ | 373 #define test_bit(nr, addr) \ |
374 (((1UL << ((nr) & 31)) & (((const unsigned int *) addr)[(nr) >> 5])) != 0) | 374 (((1UL << ((nr) & 31)) & (((const Uint32 *) addr)[(nr) >> 5])) != 0) |
375 | 375 |
376 static int EV_IsJoystick(int fd) | 376 static int EV_IsJoystick(int fd) |
377 { | 377 { |
378 unsigned long evbit[40]; | 378 unsigned long evbit[40]; |
379 unsigned long keybit[40]; | 379 unsigned long keybit[40]; |