Skip to content

Commit

Permalink
Update src/evaluate.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Dec 6, 2023
1 parent e1c98bd commit 70a574e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/evaluate.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ void evaluate_compile_time_if_statements(AstBody *body)
{
int i = 0;
while (i < body->nstatements) {
if (body->statements[i].kind != AST_STMT_IF) {
i++;
} else {
if (body->statements[i].kind == AST_STMT_IF)
replace(body, i, evaluate_compile_time_if_statement(&body->statements[i].data.ifstatement));
}
else
i++;
}
}

0 comments on commit 70a574e

Please sign in to comment.