mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
constexpr concern no longer valid
This commit is contained in:
parent
edafcd1bb5
commit
3a10e661b8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user