Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 26, 2023
1 parent 4139713 commit 2fe3ce6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rt/frun.cc
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ stop_idx_t frun::first_valid(stop_idx_t const from) const {
stop_idx_t frun::last_valid() const {
auto n = stop_range_.size();
for (auto r = 0; r != n; ++r) {
auto const i = n - r - 1U;
if (operator[](i).in_allowed() || operator[](i).out_allowed()) {
auto const i = static_cast<stop_idx_t>(stop_range_.to_ - r - 1);
if (operator[](i - stop_range_.from_).in_allowed() ||
operator[](i - stop_range_.from_).out_allowed()) {
return i;
}
}
Expand Down

0 comments on commit 2fe3ce6

Please sign in to comment.