mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[Sequences] Fixed a few crashes
Change-Id: Ib929bbae0f9ca06409706336ff799075e1288694
This commit is contained in:
committed by
Émilie Feral
parent
26bbdead7d
commit
960335c330
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user