diff --git a/include/boost/math/special_functions/gamma.hpp b/include/boost/math/special_functions/gamma.hpp index 320a4141b..46045b8cc 100644 --- a/include/boost/math/special_functions/gamma.hpp +++ b/include/boost/math/special_functions/gamma.hpp @@ -2102,7 +2102,7 @@ BOOST_MATH_GPU_ENABLED T tgamma_ratio_imp(T x, T y, const Policy& pol) // // Result will almost certainly overflow, try logs just in case: // - BOOST_IF_CONSTEXPR(boost::math::is_same::value || boost::math::is_same::value) + BOOST_MATH_IF_CONSTEXPR(boost::math::is_same::value || boost::math::is_same::value) { // straight to the scene of the accident, since the result is larger than max_factorial: return policies::raise_overflow_error("tgamma_ratio", nullptr, pol);