v4: ModelTree.cc corrected yet another parenthesis error

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@494 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2005-10-13 20:15:10 +00:00
parent 86f1c82892
commit 88b8a9e67a
1 changed files with 1 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ inline string ModelTree::getExpression(NodeID StartID, EquationType iEquationTy
// if current operator is not a temporary variable and
// of lesser precedence than previous one, insert '('
if ( precedence_current_op < precedence_last_op ||
(last_op_code == MINUS &
((last_op_code == MINUS || last_op_code == DIVIDE) &
precedence_current_op == precedence_last_op)||
current_op_code == UMINUS)
{