fixed warning in Math::max
This commit is contained in:
parent
bc36ddb299
commit
7edf1bf0fd
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue