Fix i64.powi() to i64.pos()

This commit is contained in:
Stephen Chung 2020-03-09 14:15:32 +08:00
parent a6899afb11
commit 1ca9db4379

View File

@ -312,7 +312,7 @@ impl Engine<'_> {
}
#[cfg(feature = "unchecked")]
fn pow_i64_i64(x: i64, y: i64) -> i64 {
x.powi(y as u32)
x.pow(y as u32)
}
fn pow_f64_f64(x: f64, y: f64) -> f64 {
x.powf(y)