Fix one UBSan warning

Fixes https://github.com/harfbuzz/harfbuzz/issues/935
This commit is contained in:
Behdad Esfahbod 2018-03-28 14:06:58 -07:00
parent 48baf7e389
commit 8c9451107d
1 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,11 @@ struct hb_font_funcs_t {
HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
#undef HB_FONT_FUNC_IMPLEMENT
} f;
void (*array[VAR]) (void);
void (*array[0
#define HB_FONT_FUNC_IMPLEMENT(name) +1
HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
#undef HB_FONT_FUNC_IMPLEMENT
]) (void);
} get;
};