From 9c928277a799145b9c526ae8e85430e24723b064 Mon Sep 17 00:00:00 2001 From: Anatoly Laskaris Date: Thu, 18 Aug 2022 14:17:54 +0300 Subject: [PATCH] Rename `checked_log` to `checked_ilog` --- particle-builtins/src/math.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/particle-builtins/src/math.rs b/particle-builtins/src/math.rs index c4be862d65..e5178f8962 100644 --- a/particle-builtins/src/math.rs +++ b/particle-builtins/src/math.rs @@ -51,7 +51,7 @@ pub fn pow(x: i64, y: u32) -> Result { /// log_x(y) (logarithm of base x) pub fn log(x: i64, y: i64) -> Result { - y.checked_log(x) + y.checked_ilog(x) .ok_or_else(|| JError::new("i64 log overflow")) }