From 7edf1bf0fde770c421d704818364ac4825d74f89 Mon Sep 17 00:00:00 2001 From: Joseph Aquino Date: Fri, 26 Sep 2025 09:38:54 -0400 Subject: [PATCH] fixed warning in Math::max --- include/Math-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Math-util.h b/include/Math-util.h index 91b278e..01dcb1a 100644 --- a/include/Math-util.h +++ b/include/Math-util.h @@ -4,6 +4,6 @@ namespace Math template inline T max(U first, V second) { - return static_cast(first >= second ? first : second); + return static_cast(static_cast(first) >= static_cast(second) ? first : second); } } \ No newline at end of file