From: michael Date: Fri, 21 Aug 2009 03:33:16 +0000 (+0000) Subject: evaluator bug fixed (thanks to lleo19) X-Git-Tag: svn1203~165 X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=e3dbb3fc1d4da7ddb5bff628d685ba43fceec619;p=lcd4linux.git evaluator bug fixed (thanks to lleo19) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1038 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- 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;