[poincare] Fix bug in logarithm split integer

Change-Id: I6b65443262e07e6ae3cc79eb7e5ea0c5caed1a06
This commit is contained in:
Émilie Feral
2017-11-27 16:13:04 +01:00
parent 2b9fe1b3f4
commit eb4e2bcade

View File

@@ -153,7 +153,7 @@ Expression * Logarithm::splitInteger(Integer i, bool isDenominator, Context & co
* - either it might be take too many factors... More than k_maxNumberOfPrimeFactors.
* - Or, it might takes too much time */
Expression * e = clone();
e->replaceOperand(operand(0), new Rational(i), true);
e->replaceOperand(e->operand(0), new Rational(i), true);
if (!isDenominator) {
return e;
}