Fix crashes

This commit is contained in:
Krzosa Karol
2022-05-28 17:48:52 +02:00
parent 798453c7db
commit 7de941899f
6 changed files with 25 additions and 7 deletions

View File

@@ -140,6 +140,7 @@ parse_expr_compound(){
Scratch scratch;
Token *pos = token_get();
Array<Ast_Compound_Item *> exprs = {scratch};
while(!token_is(TK_CloseBrace)){
Token *token = token_get();
Ast_Expr *index = 0;