Correct error in 3dc44f8c89

The array for event.flag was too big, harmless but incorrect.
Remove the size from the declaration as it's not needed.
This commit is contained in:
Campbell Barton 2022-03-21 17:20:41 +11:00
parent 3dc44f8c89
commit c4ce1b70e3
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ void WM_event_print(const wmEvent *event)
char modifier_id[128];
{
struct FlagIdentifierPair flag_data[4] = {
struct FlagIdentifierPair flag_data[] = {
{"SHIFT", KM_SHIFT},
{"CTRL", KM_CTRL},
{"ALT", KM_ALT},
@ -100,7 +100,7 @@ void WM_event_print(const wmEvent *event)
char flag_id[128];
{
struct FlagIdentifierPair flag_data[4] = {
struct FlagIdentifierPair flag_data[] = {
{"SCROLL_INVERT", WM_EVENT_SCROLL_INVERT},
{"IS_REPEAT", WM_EVENT_IS_REPEAT},
{"FORCE_DRAG_THRESHOLD", WM_EVENT_FORCE_DRAG_THRESHOLD},