Skip to content

Commit f10b854

Browse files
authored
Merge pull request #3661 from TheBlueMatt/2025-03-right-libm
Use proper libm power method for `f64`s
2 parents 00ee0ef + 030a235 commit f10b854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/scoring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ fn powf64(n: f64, exp: f64) -> f64 {
18171817
}
18181818
#[cfg(not(feature = "std"))]
18191819
fn powf64(n: f64, exp: f64) -> f64 {
1820-
libm::powf(n as f32, exp as f32) as f64
1820+
libm::pow(n, exp)
18211821
}
18221822

18231823
mod bucketed_history {

0 commit comments

Comments
 (0)