Skip to content

Commit

Permalink
ImathFun.cpp: add std:: to isfinite in remaining cases (AcademySoftwa…
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored and cary-ilm committed Feb 21, 2024
1 parent d5e4f50 commit 226bd76
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 226bd76

Please sign in to comment.