ARRAY_LENGTH fails with -Wglobal-constructors

This commit is contained in:
blueshade7 2019-11-18 15:40:43 -08:00 committed by Behdad Esfahbod
parent a75983690d
commit 5e9863f3c6
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ static const unsigned int HB_STRING_ARRAY_OFFS_NAME[] =
sizeof (HB_STRING_ARRAY_TYPE_NAME)
};
static const unsigned int HB_STRING_ARRAY_LENG_NAME = ARRAY_LENGTH (HB_STRING_ARRAY_OFFS_NAME) - 1;
static const unsigned int HB_STRING_ARRAY_LENG_NAME = ARRAY_LENGTH_CONST (HB_STRING_ARRAY_OFFS_NAME) - 1;
static inline hb_bytes_t
HB_STRING_ARRAY_NAME (unsigned int i)