constexpr concern no longer valid

This commit is contained in:
Crzyrndm 2018-08-18 17:24:34 +12:00
parent edafcd1bb5
commit 3a10e661b8

View File

@ -96,7 +96,7 @@ float_equals(const LNumber &lhs, const RNumber &rhs,
"Cannot extract epsilon from a number that isn't a floating point type");
// NANs always compare false with themselves
if ((lhs != lhs) || (rhs != rhs)) // std::isnan isn't constexpr
if (std::isnan(lhs) || std::isnan(rhs))
{
return false;
}