aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index ab0684a..8705310 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -99,7 +99,7 @@ parseblk(ast_t *ast, aux_t *aux, lexemes_t toks)
ast->lexemes[i] = toksidx;
ast->kinds[i] = ASTBLK;
ast->kids[i].lhs = AST_EMPTY;
- ast->kids[i].rhs = 0;
+ ast->kids[i].rhs = i;
if (toks.kinds[toksidx++] != LEXLBRACE)
err("parser: Expected left brace");