From c4dfb41f5ca191481abb04e1db91963c2ed7c79a Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Wed, 23 Mar 2011 11:36:08 +0100 Subject: [PATCH] bug fix: in cloning binary op node, were losing the order of the power deriv --- preprocessor/ExprNode.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index 9653b435e..5ec416d86 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/ExprNode.cc @@ -3168,7 +3168,7 @@ BinaryOpNode::buildSimilarBinaryOpNode(expr_t alt_arg1, expr_t alt_arg2, DataTre case oDifferent: return alt_datatree.AddDifferent(alt_arg1, alt_arg2); case oPowerDeriv: - return alt_datatree.AddBinaryOp(alt_arg1, oPowerDeriv, alt_arg2); + return alt_datatree.AddPowerDeriv(alt_arg1, alt_arg2, powerDerivOrder); } // Suppress GCC warning exit(EXIT_FAILURE);