diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/macros.h b/src/util/macros.h index a66f1bfed07..a9a52a1a478 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -30,7 +30,7 @@ /* Compute the size of an array */ #ifndef ARRAY_SIZE -# define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) +# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #endif /* For compatibility with Clang's __has_builtin() */ |