Merge pull request #220 from lucas-clemente/patch-2

add qualifiers for FPEnvironment in C99
This commit is contained in:
Aleksandar Fabijanic 2013-06-16 08:45:00 -07:00
commit 6a8f98d7a1

View File

@ -95,37 +95,37 @@ private:
//
inline bool FPEnvironmentImpl::isInfiniteImpl(float value)
{
return isinf(value) != 0;
return std::isinf(value) != 0;
}
inline bool FPEnvironmentImpl::isInfiniteImpl(double value)
{
return isinf(value) != 0;
return std::isinf(value) != 0;
}
inline bool FPEnvironmentImpl::isInfiniteImpl(long double value)
{
return isinf((double) value) != 0;
return std::isinf((double) value) != 0;
}
inline bool FPEnvironmentImpl::isNaNImpl(float value)
{
return isnan(value) != 0;
return std::isnan(value) != 0;
}
inline bool FPEnvironmentImpl::isNaNImpl(double value)
{
return isnan(value) != 0;
return std::isnan(value) != 0;
}
inline bool FPEnvironmentImpl::isNaNImpl(long double value)
{
return isnan((double) value) != 0;
return std::isnan((double) value) != 0;
}