diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index 67a38ebcc1ccb65750949d5b8594120193f26a15..ee47e18514685e1e3b5d6a3d5d9845a4be9712b0 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/ExprNode.cc @@ -2694,7 +2694,7 @@ BinaryOpNode::substituteEndoLeadGreaterThanTwo(subst_table_t &subst_table, vecto return buildSimilarBinaryOpNode(arg1subst, arg2subst, datatree); case oTimes: case oDivide: - if (maxendolead1 >= 2 && maxendolead2 == 0 && arg2->maxExoLead()) + if (maxendolead1 >= 2 && maxendolead2 == 0 && arg2->maxExoLead() == 0) { arg1subst = arg1->substituteEndoLeadGreaterThanTwo(subst_table, neweqs); return buildSimilarBinaryOpNode(arg1subst, arg2, datatree); @@ -2738,7 +2738,7 @@ BinaryOpNode::substituteExoLead(subst_table_t &subst_table, vector<BinaryOpNode return buildSimilarBinaryOpNode(arg1subst, arg2subst, datatree); case oTimes: case oDivide: - if (maxexolead1 >= 1 && maxexolead2 == 0 && arg2->maxEndoLead()) + if (maxexolead1 >= 1 && maxexolead2 == 0 && arg2->maxEndoLead() == 0) { arg1subst = arg1->substituteExoLead(subst_table, neweqs); return buildSimilarBinaryOpNode(arg1subst, arg2, datatree);