Don't use struct literal syntax for TSLength

This commit is contained in:
Max Brunsfeld 2014-09-26 16:31:30 -07:00
parent 04dc721241
commit 26ac5788b6
6 changed files with 43 additions and 32 deletions

View file

@ -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;