From 32c58f86be21784035233b2dfce40bda418135e7 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 20 Feb 2024 09:15:23 +0800 Subject: [PATCH] ImathFun.cpp: add std:: to isfinite in remaining cases (#371) A follow-up to https://github.com/AcademySoftwareFoundation/Imath/pull/368 Fixes: https://github.com/AcademySoftwareFoundation/Imath/issues/367 Signed-off-by: Sergey Fedorov --- src/Imath/ImathFun.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Imath/ImathFun.cpp b/src/Imath/ImathFun.cpp index cfd2760d..c8c2e7ea 100644 --- a/src/Imath/ImathFun.cpp +++ b/src/Imath/ImathFun.cpp @@ -10,13 +10,13 @@ IMATH_INTERNAL_NAMESPACE_SOURCE_ENTER float succf(float f) IMATH_NOEXCEPT { - return isfinite(f) ? + return std::isfinite(f) ? std::nextafter(f, std::numeric_limits::infinity()) : f; } float predf(float f) IMATH_NOEXCEPT { - return isfinite(f) ? + return std::isfinite(f) ? std::nextafter(f, -std::numeric_limits::infinity()) : f; }