Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
fintarin committed Jul 12, 2023
1 parent e1d21dd commit 31da863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fintamath/expressions/binary/DivExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ std::pair<ArgumentPtr, ArgumentPtr> DivExpression::sumSumSimplify(const Argument
ArgumentPtr result = makeExpr(Add(), resultVect);

ArgumentPtr remainderAdd = makeExpr(Add(), remainderVect);
simplifyChild(remainderAdd);
ArgumentPtr remainder = makeExpr(Div(), remainderAdd, rhs);
simplifyChild(remainder);

return {result, remainder};
}
Expand Down Expand Up @@ -309,8 +309,8 @@ std::pair<ArgumentPtr, ArgumentPtr> DivExpression::sumMulSimplify(const Argument
ArgumentPtr remainder;
if (!remainderChildren.empty()) {
ArgumentPtr remainderAdd = makeExpr(Add(), remainderChildren);
simplifyChild(remainder);
remainder = makeExpr(Div(), remainderAdd, rhs);
simplifyChild(remainder);
}

return {result, remainder};
Expand Down

0 comments on commit 31da863

Please sign in to comment.