Avoid anonymous struct to silence gcc's override-init warning (again)
This commit is contained in:
parent
cbdfd89675
commit
1df41a9107
4 changed files with 37 additions and 37 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue