From 64ba641addf68f17b9a19d9c4085a40e1ce83e9a Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 8 Aug 2011 18:48:03 +0200 Subject: [PATCH] bug fix: add parenthesis around STEADY_STATE output in case it contains an expression --- preprocessor/ExprNode.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index 9acb5c18d..3974cbbfc 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/ExprNode.cc @@ -1642,7 +1642,9 @@ UnaryOpNode::writeOutput(ostream &output, ExprNodeOutputType output_type, new_output_type = output_type; break; } + output << "("; arg->writeOutput(output, new_output_type, temporary_terms, tef_terms); + output << ")"; return; case oSteadyStateParamDeriv: {