diff --git a/test/exp_sinh_quadrature_test.cpp b/test/exp_sinh_quadrature_test.cpp index 77d520157..df7ecd71f 100644 --- a/test/exp_sinh_quadrature_test.cpp +++ b/test/exp_sinh_quadrature_test.cpp @@ -446,7 +446,7 @@ void test_crc() Real p = pn / 100; auto f = [&](Real x)->Real { - return x > 1000 * boost::math::tools::log_max_value() ? 0 : exp(-x * (1 - p) + p * log(-boost::math::expm1(-x))); + return x > 1000 * boost::math::tools::log_max_value() ? Real(0) : Real(exp(-x * (1 - p) + p * log(-boost::math::expm1(-x)))); }; Q = integrator.integrate(f, get_convergence_tolerance(), &error, &L1); Q_expected = 1 / boost::math::sinc_pi(p*pi());