zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a799d4a3cb82889751db2ac57daa4768273362a3 (tree)
parent 45449b9c04e53e1b6295b53331899c2183d6ae01
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Thu, 24 Apr 2025 22:27:50 +0300

fix assertion failure

Diffstat:
Mparser.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parser.c b/parser.c @@ -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;