Avoid anonymous struct to silence gcc's override-init warning (again)

This commit is contained in:
Max Brunsfeld 2017-07-21 10:17:54 -07:00
parent cbdfd89675
commit 1df41a9107
4 changed files with 37 additions and 37 deletions

View file

@ -44,7 +44,7 @@ static inline TSStateId ts_language_next_state(const TSLanguage *self,
if (count > 0) {
TSParseAction action = actions[count - 1];
if (action.type == TSParseActionTypeShift || action.type == TSParseActionTypeRecover) {
return action.to_state;
return action.params.state;
}
}
return 0;