aboutsummaryrefslogtreecommitdiffstats
path: root/evaluator.c
diff options
context:
space:
mode:
Diffstat (limited to 'evaluator.c')
-rw-r--r--evaluator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/evaluator.c b/evaluator.c
index 7626d01..d0d4928 100644
--- a/evaluator.c
+++ b/evaluator.c
@@ -1108,6 +1108,7 @@ static int EvalTree(NODE * Root)
for (i = 0; i < Root->Children; i++) {
EvalTree(Root->Child[i]);
}
+ i = Root->Children - 1;
type = Root->Child[i]->Result->type;
number = Root->Child[i]->Result->number;
string = Root->Child[i]->Result->string;