replace -std::numeric_limits<T>::max() with ::lowest()
This commit is contained in:
parent
91792f45ea
commit
4df215e674
@ -47,7 +47,7 @@ template <typename T> T clamp_float(T d)
|
|||||||
}
|
}
|
||||||
if (-std::numeric_limits<T>::infinity() == d)
|
if (-std::numeric_limits<T>::infinity() == d)
|
||||||
{
|
{
|
||||||
return -std::numeric_limits<T>::max();
|
return std::numeric_limits<T>::lowest();
|
||||||
}
|
}
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
|
Loading…
Reference in New Issue
Block a user