diff --git a/poincare/src/addition.cpp b/poincare/src/addition.cpp index f7b2e3474..bb19995a0 100644 --- a/poincare/src/addition.cpp +++ b/poincare/src/addition.cpp @@ -98,7 +98,7 @@ void Addition::immediateBeautify() { int index = 0; while (index < numberOfOperands()) { // a+(-1)*b+... -> a-b+... - if (operand(index)->type() == Type::Multiplication && static_cast(operand(index))->operand(0)->type() == Type::Rational && static_cast(operand(index)->operand(0))->isMinusOne()) { + if (operand(index)->type() == Type::Multiplication && operand(index)->operand(0)->type() == Type::Rational && static_cast(operand(index)->operand(0))->isMinusOne()) { Multiplication * m = static_cast((Expression *)operand(index)); m->removeOperand(m->operand(0), true); m->squashUnaryHierarchy();