From 75b9d2913fe5408a6c5731f62122d0f5537e13ab Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Sun, 19 May 2024 16:42:22 +1000 Subject: [PATCH] fix max std lib (#2391) --- src/wasm-lib/kcl/src/std/math.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasm-lib/kcl/src/std/math.rs b/src/wasm-lib/kcl/src/std/math.rs index abae2f8de..8f8ade946 100644 --- a/src/wasm-lib/kcl/src/std/math.rs +++ b/src/wasm-lib/kcl/src/std/math.rs @@ -239,7 +239,7 @@ pub async fn max(args: Args) -> Result { tags = ["math"], }] fn inner_max(args: Vec) -> f64 { - let mut max = std::f64::MAX; + let mut max = std::f64::MIN; for arg in args.iter() { if *arg > max { max = *arg;