mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-03 09:14:16 +01:00
force NaN not infinity on windows (consistent with std and other platforms)
This commit is contained in:
@@ -92,18 +92,21 @@ private:
|
||||
//
|
||||
inline bool FPEnvironmentImpl::isInfiniteImpl(float value)
|
||||
{
|
||||
if (_isnan(value) != 0) return false;
|
||||
return _finite(value) == 0;
|
||||
}
|
||||
|
||||
|
||||
inline bool FPEnvironmentImpl::isInfiniteImpl(double value)
|
||||
{
|
||||
if (_isnan(value) != 0) return false;
|
||||
return _finite(value) == 0;
|
||||
}
|
||||
|
||||
|
||||
inline bool FPEnvironmentImpl::isInfiniteImpl(long double value)
|
||||
{
|
||||
if (_isnan(value) != 0) return false;
|
||||
return _finite(value) == 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user