fixed QSE_COUNTOF()

This commit is contained in:
hyung-hwan 2017-04-07 14:20:10 +00:00
parent f28fee48cc
commit 237d46483c

View File

@ -111,7 +111,7 @@
* printf ("%d\n", (int)QSE_COUNTOF(x));
* \endcode
*/
#define QSE_COUNTOF(n) (sizeof(n)/sizeof(n[0]))
#define QSE_COUNTOF(n) (sizeof(n)/sizeof((n)[0]))
/**
* The QSE_OFFSETOF() macro returns the offset of a field from the beginning