Skip to content

Commit 361346a

Browse files
cr1901vladimir-ea
authored andcommitted
Use fully-qualified syntax for abs_diff to avoid warning, which can trigger a compiler error.
1 parent 44e7c2c commit 361346a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/float/pow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use int::Int;
55
fn pow<F: Float>(a: F, b: i32) -> F {
66
let mut a = a;
77
let recip = b < 0;
8-
let mut pow = i32::abs_diff(b, 0);
8+
let mut pow = Int::abs_diff(b, 0);
99
let mut mul = F::ONE;
1010
loop {
1111
if (pow & 1) != 0 {

0 commit comments

Comments
 (0)