From f126c452ea1723d31afa94eb99a65d4f8aea078a Mon Sep 17 00:00:00 2001 From: losehu Date: Wed, 20 Nov 2024 16:55:09 +0800 Subject: [PATCH] =?UTF-8?q?ARRAY=5FSIZE=E6=94=AF=E6=8C=81mac?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.h b/misc.h index bd9cdd9b..1dcdb39a 100644 --- a/misc.h +++ b/misc.h @@ -21,7 +21,7 @@ #include #ifndef ARRAY_SIZE -#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #endif #ifndef MAX