fix assertion failure

This commit is contained in:
2025-04-24 22:27:50 +03:00
parent 45449b9c04
commit a799d4a3cb

View File

@@ -238,13 +238,13 @@ static AstNodeIndex parseBuiltinCall(Parser* p) {
break;
case TOKEN_R_PAREN:
p->tok_i++;
goto next;
goto end_loop;
default:
fprintf(stderr, "expected comma after arg\n");
exit(1);
}
next:;
}
end_loop:;
const bool comma = (p->token_tags[p->tok_i - 2] == TOKEN_COMMA);
const uint32_t params_len = p->scratch.len - scratch_top.old_len;