mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[solver] Fix bug: when the number of solutions is infinite, do not try
to find the solution layouts
This commit is contained in:
@@ -174,7 +174,7 @@ EquationStore::Error EquationStore::exactSolve(Poincare::Context * context) {
|
||||
}
|
||||
/* Turn the results in layouts */
|
||||
int solutionIndex = 0;
|
||||
int initialNumberOfSolutions = m_numberOfSolutions;
|
||||
int initialNumberOfSolutions = m_numberOfSolutions <= k_maxNumberOfExactSolutions ? m_numberOfSolutions : -1;
|
||||
// We iterate through the solutions and the potential delta
|
||||
for (int i = 0; i < initialNumberOfSolutions+1; i++) {
|
||||
if (!exactSolutions[i].isUninitialized()) {
|
||||
|
||||
Reference in New Issue
Block a user