Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jul 9, 2024
1 parent 729efbd commit 3a05257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_layer/core/src/iterators/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ macro_rules! non_overlapping_iter_impl {
}
let size = match <$ty>::try_from(self.size) {
Ok(size) => size,
Err(_) => return None,
Err(_) => <$ty>::MAX,
};
match self.current.checked_add(size) {
Some(next) => {
Expand Down Expand Up @@ -133,7 +133,7 @@ macro_rules! non_overlapping_iter_impl {

let size = match <$ty>::try_from(self.size) {
Ok(size) => size,
Err(_) => return None,
Err(_) => <$ty>::MAX,
};
// Is this the first iteration?
if self.end == self.current_end {
Expand Down

0 comments on commit 3a05257

Please sign in to comment.