From b8ea32436aba391b210b8f0a02fa2a048ff31f78 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 8 Feb 2024 19:56:27 +0000 Subject: [PATCH] Correct concept failures. --- include/boost/math/special_functions/detail/bessel_ik.hpp | 2 +- include/boost/math/special_functions/detail/bessel_kn.hpp | 2 +- test/test_bessel_y.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/math/special_functions/detail/bessel_ik.hpp b/include/boost/math/special_functions/detail/bessel_ik.hpp index b503352f2..da2310866 100644 --- a/include/boost/math/special_functions/detail/bessel_ik.hpp +++ b/include/boost/math/special_functions/detail/bessel_ik.hpp @@ -360,7 +360,7 @@ int bessel_ik(T v, T x, T* result_I, T* result_K, int kind, const Policy& pol) { prev /= current; scale /= current; - scale_sign *= (boost::math::signbit(current) ? -1 : 1); + scale_sign *= ((boost::math::signbit)(current) ? -1 : 1); current = 1; } next = fact * current + prev; diff --git a/include/boost/math/special_functions/detail/bessel_kn.hpp b/include/boost/math/special_functions/detail/bessel_kn.hpp index 4fc086d58..d0ddcd0db 100644 --- a/include/boost/math/special_functions/detail/bessel_kn.hpp +++ b/include/boost/math/special_functions/detail/bessel_kn.hpp @@ -75,7 +75,7 @@ T bessel_kn(int n, T x, const Policy& pol) } while(k < n); if (tools::max_value() * scale < fabs(value)) - return (signbit(scale) ? -1 : 1) * sign(value) * policies::raise_overflow_error(function, nullptr, pol); + return ((boost::math::signbit)(scale) ? -1 : 1) * sign(value) * policies::raise_overflow_error(function, nullptr, pol); value /= scale; } return value; diff --git a/test/test_bessel_y.hpp b/test/test_bessel_y.hpp index 08aeb4e52..730fd8d58 100644 --- a/test/test_bessel_y.hpp +++ b/test/test_bessel_y.hpp @@ -245,7 +245,7 @@ void test_bessel(T, const char* name) #endif BOOST_IF_CONSTEXPR(std::numeric_limits::has_infinity && (std::numeric_limits::min_exponent < -1072)) { - static const std::array::type, 3>, 5> coverage_data = { { + static const std::array, 5> coverage_data = { { #if LDBL_MAX_10_EXP > 4931 {{ SC_(15.25), ldexp(T(1), -1071), SC_(-9.39553199265929955912687892204143267985847111378392154596e4931)}}, #else