[poincare] Fix bug in Multiplication::simplify

Change-Id: I32c3489507c92658bec2fe97ec159d9181965224
This commit is contained in:
Émilie Feral
2017-10-06 12:05:50 +02:00
parent 78b85ed0df
commit 5fa0d8e089

View File

@@ -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;
}