fixed warning in Math::max

This commit is contained in:
Joseph Aquino 2025-09-26 09:38:54 -04:00
parent bc36ddb299
commit 7edf1bf0fd
1 changed files with 1 additions and 1 deletions

View File

@ -4,6 +4,6 @@ namespace Math
template<typename T, typename U, typename V> template<typename T, typename U, typename V>
inline T max(U first, V second) inline T max(U first, V second)
{ {
return static_cast<T>(first >= second ? first : second); return static_cast<T>(static_cast<T>(first) >= static_cast<T>(second) ? first : second);
} }
} }