bug fix: in cloning binary op node, were losing the order of the power deriv

time-shift
Houtan Bastani 2011-03-23 11:36:08 +01:00
parent 8cf247e26a
commit c4dfb41f5c
1 changed files with 1 additions and 1 deletions

View File

@ -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);