diff --git a/poincare/src/matrix_identity.cpp b/poincare/src/matrix_identity.cpp index a20c64a25..56c637085 100644 --- a/poincare/src/matrix_identity.cpp +++ b/poincare/src/matrix_identity.cpp @@ -52,7 +52,7 @@ Expression MatrixIdentity::shallowReduce(ExpressionNode::ReductionContext reduct if (c.type() != ExpressionNode::Type::Rational || !static_cast(c).isInteger()) { - return replaceWithUndefinedInPlace(); // TODO: are we sure? + return *this; } Integer dimension = static_cast(c).signedIntegerNumerator(); if (dimension.isNegative()) {