We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0187f1 commit ba870b2Copy full SHA for ba870b2
src/float/pow.rs
@@ -5,7 +5,7 @@ use int::Int;
5
fn pow<F: Float>(a: F, b: i32) -> F {
6
let mut a = a;
7
let recip = b < 0;
8
- let mut pow = i32::abs_diff(b, 0);
+ let mut pow = Int::abs_diff(b, 0);
9
let mut mul = F::ONE;
10
loop {
11
if (pow & 1) != 0 {
0 commit comments