Skip to content

Commit

Permalink
Fix lower bound
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Dec 3, 2024
1 parent 90a6a1f commit 39b9fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbor/backends/event_stream_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct spike_event_stream_base: event_stream_base<deliverable_event> {
step = std::lower_bound(steps.begin() + step,
steps.end(),
evt.time,
[](const auto& bucket, time_type time) { return bucket.t_end() < time; })
[](const auto& bucket, time_type time) { return bucket.t_end() <= time; })
- steps.begin();
// Events coinciding with epoch's upper boundary belong to next epoch
if (step >= n_steps) break;
Expand Down

0 comments on commit 39b9fff

Please sign in to comment.