From f09ce60d45d5524e36d07e76814b6e0cbc554288 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Mon, 28 May 2012 21:50:12 +1000 Subject: Fix issues with some things ignoring strategies. --- impl/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'impl/main.cpp') diff --git a/impl/main.cpp b/impl/main.cpp index abd27ba..530556f 100644 --- a/impl/main.cpp +++ b/impl/main.cpp @@ -19,7 +19,7 @@ extern "C" { using namespace std; template -Expression* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem& system, bool topLevel=true) { +Expression* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem& system) { ANTLR3_UINT32 num = node->getChildCount(node); string name = (char*) node->getText(node)->chars; @@ -44,7 +44,7 @@ Expression* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem& syste pANTLR3_BASE_TREE childNode; for (unsigned int i = 0; i < num; ++i) { childNode = (pANTLR3_BASE_TREE) node->getChild(node, i); - args.push_back(treeToExpression(childNode, system, false)); + args.push_back(treeToExpression(childNode, system)); } if (name == "max") { -- cgit v1.2.3