Skip to content
Snippets Groups Projects
Verified Commit 743ccf77 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

:bug: Occbin: fix loop over all regimes combination

std::fill takes a range that is open on the right bound (i.e. [first, last) and
not [first, last]).
parent c10a603e
No related branches found
No related tags found
No related merge requests found
...@@ -4397,8 +4397,7 @@ DynamicModel::OccbinRegimeTracker::checkAllRegimesPresent() const ...@@ -4397,8 +4397,7 @@ DynamicModel::OccbinRegimeTracker::checkAllRegimesPresent() const
if (it == r.end()) if (it == r.end())
break; break;
*it = true; *it = true;
if (it != r.begin()) fill(r.begin(), it, false);
fill(r.begin(), prev(it), false);
} }
while (true); while (true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment