]> skyeroc.xyz Git - dgamelaunch/commitdiff
make sure precedence doens't bite ARRAY_SIZE in the ass
authorJoshua Kwan <joshk@triplehelix.org>
Sat, 31 Jan 2004 08:41:00 +0000 (08:41 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Sat, 31 Jan 2004 08:41:00 +0000 (08:41 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@202 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index 4d5f24cfefe86fdd6064f570cbb4ef9c39ad99e9..acfd0182eb6c799d4c3a74185a9e1671373357ea 100644 (file)
@@ -65,7 +65,7 @@
 #endif
 
 #ifndef ARRAY_SIZE
-# define ARRAY_SIZE(x) sizeof(x) / sizeof(x[0])
+# define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
 #endif
 
 #include <fcntl.h>