Skip to content

Commit 328bd83

Browse files
authored
Update parser.c
1 parent cb785bf commit 328bd83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static Stmt* print_statement() {
105105

106106
Stmt* stmt = malloc(sizeof(Stmt));
107107
stmt->type = STMT_PRINT;
108-
stmt->data.print.expr = expr;
108+
stmt->data.print->expr = expr;
109109
return stmt;
110110
}
111111

@@ -115,7 +115,7 @@ static Stmt* expression_statement() {
115115

116116
Stmt* stmt = malloc(sizeof(Stmt));
117117
stmt->type = STMT_EXPRESSION;
118-
stmt->data.expression.expr = expr;
118+
stmt->data.expression->expr = expr;
119119
return stmt;
120120
}
121121

0 commit comments

Comments
 (0)