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