From 6afc28f8274a1a5ee3f3b4cb1e56a79586a49588 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 9 Jul 2021 15:33:25 +0100 Subject: [PATCH] Use builtin.min and builtin.max in package slice --- core/slice/slice.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/slice/slice.odin b/core/slice/slice.odin index 4d60fe67a..dc1bceb58 100644 --- a/core/slice/slice.odin +++ b/core/slice/slice.odin @@ -299,7 +299,7 @@ min :: proc(s: $S/[]$T) -> (res: T, ok: bool) where intrinsics.type_is_ordered(T res = s[0]; ok = true; for v in s[1:] { - res = min(res, v); + res = builtin.min(res, v); } } return; @@ -309,7 +309,7 @@ max :: proc(s: $S/[]$T) -> (res: T, ok: bool) where intrinsics.type_is_ordered(T res = s[0]; ok = true; for v in s[1:] { - res = max(res, v); + res = builtin.max(res, v); } } return;