Skip to content

Commit

Permalink
ImathFun.cpp: add std:: to isfinite in remaining cases
Browse files Browse the repository at this point in the history
A follow-up to AcademySoftwareFoundation#368
Fixes: AcademySoftwareFoundation#367

Signed-off-by: Sergey Fedorov <[email protected]>
  • Loading branch information
barracuda156 committed Feb 19, 2024
1 parent edb64a8 commit 15f2e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Imath/ImathFun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>::infinity()) : f;
}

float predf(float f) IMATH_NOEXCEPT
{
return isfinite(f) ?
return std::isfinite(f) ?
std::nextafter(f, -std::numeric_limits<float>::infinity()) : f;
}

Expand Down

0 comments on commit 15f2e2b

Please sign in to comment.