mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 10:48:15 +00:00
Review usage of sizeof(), unify conventions
All functions requiring sizeof() now follow the same convention: NUM_ELEMENTS*NUM_SUBELEMENTS*sizeof()
This commit is contained in:
@@ -4687,7 +4687,7 @@ static void InitEvdevInput(void)
|
||||
// Identifies a input device and spawns a thread to handle it if needed
|
||||
static void EventThreadSpawn(char *device)
|
||||
{
|
||||
#define BITS_PER_LONG (sizeof(long)*8)
|
||||
#define BITS_PER_LONG (8*sizeof(long))
|
||||
#define NBITS(x) ((((x) - 1)/BITS_PER_LONG) + 1)
|
||||
#define OFF(x) ((x)%BITS_PER_LONG)
|
||||
#define BIT(x) (1UL<<OFF(x))
|
||||
|
Reference in New Issue
Block a user