mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-23 13:09:11 +00:00
Patch from Sylvain to fix clang warnings
This commit is contained in:
parent
c13a077d15
commit
57d01d7d67
50 changed files with 285 additions and 167 deletions
|
@ -280,7 +280,7 @@ SDL_UDEV_LoadLibrary(void)
|
|||
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
|
||||
#define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
|
||||
#define OFF(x) ((x)%BITS_PER_LONG)
|
||||
#define BIT(x) (1UL<<OFF(x))
|
||||
/* #define BIT(x) (1UL<<OFF(x)) */
|
||||
#define LONG(x) ((x)/BITS_PER_LONG)
|
||||
#define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue