From eb4e2bcade84d3b4a1de512c8986fdaaf9b2434a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 27 Nov 2017 16:13:04 +0100 Subject: [PATCH] [poincare] Fix bug in logarithm split integer Change-Id: I6b65443262e07e6ae3cc79eb7e5ea0c5caed1a06 --- poincare/src/logarithm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poincare/src/logarithm.cpp b/poincare/src/logarithm.cpp index 734f03efa..ff17271ad 100644 --- a/poincare/src/logarithm.cpp +++ b/poincare/src/logarithm.cpp @@ -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; }