This commit is contained in:
oberien 2018-01-20 00:41:21 +01:00
parent f72b7f7c86
commit 4a0da4cf2c

View File

@ -721,7 +721,7 @@ impl<I> Iterator for StepBy<I> where I: Iterator {
// overflow handling
loop {
let mul = n.checked_mul(step);
if unsafe { intrinsics::likely(mul.is_some())} {
if unsafe { intrinsics::likely(mul.is_some()) } {
return self.iter.nth(mul.unwrap() - 1);
}
let div_n = usize::MAX / n;