diff --git a/src/Imath/ImathFun.cpp b/src/Imath/ImathFun.cpp index bfec292d..cfd2760d 100644 --- a/src/Imath/ImathFun.cpp +++ b/src/Imath/ImathFun.cpp @@ -22,13 +22,13 @@ float predf(float f) IMATH_NOEXCEPT double succd(double d) IMATH_NOEXCEPT { - return isfinite(d) ? + return std::isfinite(d) ? std::nextafter(d, std::numeric_limits::infinity()) : d; } double predd(double d) IMATH_NOEXCEPT { - return isfinite(d) ? + return std::isfinite(d) ? std::nextafter(d, -std::numeric_limits::infinity()) : d; }