aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-08-21 03:33:16 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-08-21 03:33:16 +0000
commite3dbb3fc1d4da7ddb5bff628d685ba43fceec619 (patch)
tree4237f2b61f4901e4d5fdf75cbcf9e7fbff9f01e5
parent1be5ce2c6de9319db103ef454e4639966646f999 (diff)
downloadlcd4linux-e3dbb3fc1d4da7ddb5bff628d685ba43fceec619.tar.gz
evaluator bug fixed (thanks to lleo19)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1038 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-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;