diff --git a/include/boost/math/special_functions/bessel.hpp b/include/boost/math/special_functions/bessel.hpp index 12e5884f4c..e5ac852bd8 100644 --- a/include/boost/math/special_functions/bessel.hpp +++ b/include/boost/math/special_functions/bessel.hpp @@ -274,7 +274,7 @@ inline T cyl_neumann_imp(T v, T x, const bessel_no_int_tag&, const Policy& pol) if(x <= 0) { return (v == 0) && (x == 0) ? - policies::raise_overflow_error(function, nullptr, pol) + -policies::raise_overflow_error(function, nullptr, pol) : policies::raise_domain_error(function, "Got x = %1%, but result is complex for x <= 0", x, pol); } T result_J, y; // LCOV_EXCL_LINE