Merge branch 'master' into elf

This commit is contained in:
Stephen Anthony 2024-07-30 18:03:53 -02:30
commit bf8648679c
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ namespace BSPF
// if it is outside the specified range
template<typename T> inline constexpr T clamp(T val, T lower, T upper)
{
return (val < lower) ? lower : (val > upper) ? upper : val;
return std::clamp<T>(val, lower, upper);
}
template<typename T> inline constexpr void clamp(T& val, T lower, T upper, T setVal)
{