mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[apps/shared] Fix wrong assertions
This commit is contained in:
@@ -63,7 +63,7 @@ StorageExpressionModel * StorageExpressionModelStore::definedModelAtIndex(int i)
|
||||
int currentModelIndex = 0;
|
||||
StorageExpressionModel * m = modelAtIndex(currentModelIndex++);
|
||||
while (!m->isNull()) {
|
||||
assert(currentModelIndex < numberOfModels());
|
||||
assert(currentModelIndex <= numberOfModels());
|
||||
if (m->isDefined()) {
|
||||
if (i == index) {
|
||||
return m;
|
||||
|
||||
@@ -28,7 +28,7 @@ StorageFunction * StorageFunctionStore::activeFunctionAtIndex(int i) const {
|
||||
int currentModelIndex = 0;
|
||||
StorageFunction * function = modelAtIndex(currentModelIndex++);
|
||||
while (!function->isNull()) {
|
||||
assert(currentModelIndex < numberOfModels());
|
||||
assert(currentModelIndex <= numberOfModels());
|
||||
if (function->isActive() && function->isDefined()) {
|
||||
if (i == index) {
|
||||
return function;
|
||||
|
||||
Reference in New Issue
Block a user