From: Joshua Kwan Date: Sat, 31 Jan 2004 08:41:00 +0000 (+0000) Subject: make sure precedence doens't bite ARRAY_SIZE in the ass X-Git-Tag: v1.6.1-roc-dev~497 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=9072f9c8dbf7a703fffd5849fed93d437cb00cf8;p=dgamelaunch make sure precedence doens't bite ARRAY_SIZE in the ass git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@202 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgamelaunch.c b/dgamelaunch.c index 4d5f24c..acfd018 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -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