[Sequences] Fixed a few crashes

Change-Id: Ib929bbae0f9ca06409706336ff799075e1288694
This commit is contained in:
Arthur Camouseigt
2020-09-17 11:43:27 +02:00
committed by Émilie Feral
parent 26bbdead7d
commit 960335c330
7 changed files with 60 additions and 16 deletions

View File

@@ -102,7 +102,7 @@ void EquationStore::approximateSolve(Poincare::Context * context, bool shouldRep
for (int i = 0; i <= k_maxNumberOfApproximateSolutions; i++) {
root = PoincareHelpers::NextRoot(undevelopedExpression, m_variables[0], start, step, m_intervalApproximateSolutions[1], context);
if (i == k_maxNumberOfApproximateSolutions) {
m_hasMoreThanMaxNumberOfApproximateSolution = !isnan(root);
m_hasMoreThanMaxNumberOfApproximateSolution = !std::isnan(root);
break;
}
m_approximateSolutions[i] = root;