From f7c3bde22feff83b0ded9af65d72b0afb6a2fcd3 Mon Sep 17 00:00:00 2001 From: profan Date: Fri, 5 Jun 2026 21:18:47 +0100 Subject: [PATCH] ensure float path is used, no implicit double conversion --- Program.cs | 4 ++-- Sharpero.sln.DotSettings.user | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 75ea7d3..0217e8c 100644 --- a/Program.cs +++ b/Program.cs @@ -584,7 +584,7 @@ internal static class Interpreter { if (typeof(T) == typeof(float)) { - return (T)(object)Math.Max(Unsafe.As(ref a), Unsafe.As(ref b)); + return (T)(object)MathF.Max(Unsafe.As(ref a), Unsafe.As(ref b)); } else if (typeof(T) == typeof(Vector)) { @@ -602,7 +602,7 @@ internal static class Interpreter { if (typeof(T) == typeof(float)) { - return (T)(object)Math.Min(Unsafe.As(ref a), Unsafe.As(ref b)); + return (T)(object)MathF.Min(Unsafe.As(ref a), Unsafe.As(ref b)); } else if (typeof(T) == typeof(Vector)) { diff --git a/Sharpero.sln.DotSettings.user b/Sharpero.sln.DotSettings.user index 911011b..b24b261 100644 --- a/Sharpero.sln.DotSettings.user +++ b/Sharpero.sln.DotSettings.user @@ -13,5 +13,6 @@ ForceIncluded ForceIncluded ForceIncluded + ForceIncluded ForceIncluded ForceIncluded \ No newline at end of file