fix assertion failure
This commit is contained in:
4
parser.c
4
parser.c
@@ -238,13 +238,13 @@ static AstNodeIndex parseBuiltinCall(Parser* p) {
|
|||||||
break;
|
break;
|
||||||
case TOKEN_R_PAREN:
|
case TOKEN_R_PAREN:
|
||||||
p->tok_i++;
|
p->tok_i++;
|
||||||
goto next;
|
goto end_loop;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "expected comma after arg\n");
|
fprintf(stderr, "expected comma after arg\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
next:;
|
|
||||||
}
|
}
|
||||||
|
end_loop:;
|
||||||
|
|
||||||
const bool comma = (p->token_tags[p->tok_i - 2] == TOKEN_COMMA);
|
const bool comma = (p->token_tags[p->tok_i - 2] == TOKEN_COMMA);
|
||||||
const uint32_t params_len = p->scratch.len - scratch_top.old_len;
|
const uint32_t params_len = p->scratch.len - scratch_top.old_len;
|
||||||
|
|||||||
Reference in New Issue
Block a user