]> git.webhop.me Git - lcd4linux.git/commitdiff
evaluator bug fixed (thanks to lleo19)
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 21 Aug 2009 03:33:16 +0000 (03:33 +0000)
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 21 Aug 2009 03:33:16 +0000 (03:33 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1038 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

evaluator.c

index 7626d0109f2b45c26b6bf83397c6fc26451f9542..d0d4928804bf97b65d86ccfa6ecf3f8c10f5e6b2 100644 (file)
@@ -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;