diff --git a/src/lib.rs b/src/lib.rs index 2749008..3e063d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,7 +80,7 @@ impl Iterator for DecBy { #[inline(always)] fn next(&mut self) -> Option { if let Some(remaining) = Step::backward_checked(self.start, STEP) { - if Step::forward(remaining, STEP) >= self.end { + if self.start >= self.end { let res = Some(self.start); self.start = remaining; res