v4: ModelTree.cc corrected yet another parenthesis error
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@494 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
86f1c82892
commit
88b8a9e67a
|
@ -1044,7 +1044,7 @@ inline string ModelTree::getExpression(NodeID StartID, EquationType iEquationTy
|
||||||
// if current operator is not a temporary variable and
|
// if current operator is not a temporary variable and
|
||||||
// of lesser precedence than previous one, insert '('
|
// of lesser precedence than previous one, insert '('
|
||||||
if ( precedence_current_op < precedence_last_op ||
|
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)||
|
precedence_current_op == precedence_last_op)||
|
||||||
current_op_code == UMINUS)
|
current_op_code == UMINUS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue