From e05c79a751d207c1ca3dd6f467f2d9f72d013201 Mon Sep 17 00:00:00 2001 From: krangelov Date: Thu, 14 Feb 2019 15:31:36 +0100 Subject: [PATCH] different definition for GF_ARRAY_LEN --- src/runtime/c/gu/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/c/gu/defs.h b/src/runtime/c/gu/defs.h index f5472a414..a7fd04aad 100644 --- a/src/runtime/c/gu/defs.h +++ b/src/runtime/c/gu/defs.h @@ -87,7 +87,7 @@ #define GU_COMMA , -#define GU_ARRAY_LEN(t,a) (sizeof((const t[])a) / sizeof(t)) +#define GU_ARRAY_LEN(a) (sizeof(a) / sizeof(a[0])) #define GU_ID(...) __VA_ARGS__