[poincare] Fix AdditionalInformationType: fix typo

This commit is contained in:
Émilie Feral
2020-01-13 14:55:33 +01:00
committed by Léa Saviot
parent a4e8d24a23
commit 0ec3675b76

View File

@@ -256,7 +256,7 @@ Expression::AdditionalInformationType Expression::additionalInformationType(Cont
return AdditionalInformationType::Integer;
}
// Find forms like [12]/[23] or [-12]/[23] or [12]/[-23] or [-12]/[-23]
if (t == ExpressionNode::Type::Division && IsSignedBasedInteger(childAtIndex(1)) && IsSignedBasedInteger(childAtIndex(1))) {
if (t == ExpressionNode::Type::Division && IsSignedBasedInteger(childAtIndex(0)) && IsSignedBasedInteger(childAtIndex(1))) {
return AdditionalInformationType::Rational;
}
if (t == ExpressionNode::Type::Cosine || t == ExpressionNode::Type::Sine) {