From 5fa0d8e089848a46230e5ee25bce43aa6598ffda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 6 Oct 2017 12:05:50 +0200 Subject: [PATCH] =?UTF-8?q?[poincare]=C2=A0Fix=20bug=20in=20Multiplication?= =?UTF-8?q?::simplify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I32c3489507c92658bec2fe97ec159d9181965224 --- poincare/src/multiplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poincare/src/multiplication.cpp b/poincare/src/multiplication.cpp index 948b3fd8b..8d8bff7c5 100644 --- a/poincare/src/multiplication.cpp +++ b/poincare/src/multiplication.cpp @@ -140,7 +140,7 @@ void Multiplication::distributeOnChildAtIndex(int i) { } const Expression * Multiplication::CreateExponent(Expression * e) { - Expression * n = e->type() == Type::Power ? e->operand(1)->clone() : new Integer(1); + Expression * n = e->type() == Type::Power ? e->operand(1)->clone() : new Rational(Integer(1)); return n; }