Don't use struct literal syntax for TSLength
This commit is contained in:
parent
04dc721241
commit
26ac5788b6
6 changed files with 43 additions and 32 deletions
|
|
@ -21,7 +21,7 @@ static TSParseAction action_for(const TSLanguage *lang, TSStateId state,
|
|||
static TSLength breakdown_stack(TSParser *parser, TSInputEdit *edit) {
|
||||
if (!edit) {
|
||||
ts_stack_shrink(&parser->stack, 0);
|
||||
return (TSLength) {};
|
||||
return ts_length_zero();
|
||||
}
|
||||
|
||||
TSStack *stack = &parser->stack;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue