summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-05-23 19:23:40 +0200
committerraysan5 <[email protected]>2020-05-23 19:23:40 +0200
commit94789dd24a931e3659360aa6ffd587b4523a3b98 (patch)
treed4b68f7d302d8145ab1728fc7a3fb72ad663a3f1 /src/core.c
parentb95673f70191244dd88be2b7ad0b401d86972650 (diff)
downloadraylib-94789dd24a931e3659360aa6ffd587b4523a3b98.tar.gz
raylib-94789dd24a931e3659360aa6ffd587b4523a3b98.zip
Review usage of sizeof(), unify conventions
All functions requiring sizeof() now follow the same convention: NUM_ELEMENTS*NUM_SUBELEMENTS*sizeof()
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 3f23fb9c..6ac24ded 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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))