Skip to content

Commit

Permalink
Add std:: to isfinite in ImathFun.cpp (AcademySoftwareFoundation#368)
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm authored Feb 14, 2024
1 parent 51abc0f commit edb64a8
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 @@ -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<double>::infinity()) : d;
}

double predd(double d) IMATH_NOEXCEPT
{
return isfinite(d) ?
return std::isfinite(d) ?
std::nextafter(d, -std::numeric_limits<double>::infinity()) : d;
}

Expand Down

0 comments on commit edb64a8

Please sign in to comment.