Skip to content

Commit

Permalink
Add std:: to isfinite in ImathFun.cpp (#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 committed Feb 27, 2024
1 parent c78597c commit e243af7
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 e243af7

Please sign in to comment.