aboutsummaryrefslogtreecommitdiffstats
path: root/eval.cc
diff options
context:
space:
mode:
Diffstat (limited to 'eval.cc')
-rw-r--r--eval.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.cc b/eval.cc
index 62b6aa0..46b2736 100644
--- a/eval.cc
+++ b/eval.cc
@@ -127,9 +127,9 @@ void Evaluator::EvalIf(const IfAST* ast) {
const vector<AST*>* asts;
if (is_true) {
- asts = &ast->true_stmts;
+ asts = &ast->true_asts;
} else {
- asts = &ast->false_stmts;
+ asts = &ast->false_asts;
}
for (AST* a : *asts) {
a->Eval(this);