From 5506b45b6af3b63ea359ad231ad0df452da67297 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Aug 2015 00:57:55 +0300 Subject: Return from COMPOUND_EXPR numeric result. --- src/analysis/expression.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/analysis') diff --git a/src/analysis/expression.cpp b/src/analysis/expression.cpp index 3add85a..fbb86d8 100644 --- a/src/analysis/expression.cpp +++ b/src/analysis/expression.cpp @@ -744,6 +744,10 @@ void analyseCompoundExpr(CompoundExprNode *node, const WalkItem &wi, WalkItem &w walkTree(node->args[sz - 1], wi, wo2); Log::dumpWI(node, "wo2 ", wo2); + // copy number value from last COMPOUND_EXPR child node + wo.isNum = wo2.isNum; + wo.num = wo2.num; + // probably condition wrong if (wo2.cleanExpr) { -- cgit v1.2.3-70-g09d2