From 1ca9db4379af8d5121c7d1c88e5b380ef6255011 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 9 Mar 2020 14:15:32 +0800 Subject: [PATCH] Fix i64.powi() to i64.pos() --- src/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin.rs b/src/builtin.rs index 9003b13b..546d680f 100644 --- a/src/builtin.rs +++ b/src/builtin.rs @@ -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)