From bb9b10e4dd62e69099fd934e44575d6fa0ca4c6e Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 8 Mar 2024 18:42:06 +0000 Subject: [PATCH] Correct expint test case. --- test/test_expint.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_expint.hpp b/test/test_expint.hpp index fb2f138c2..a5a98d6ef 100644 --- a/test/test_expint.hpp +++ b/test/test_expint.hpp @@ -205,12 +205,12 @@ void test_spots(T, const char* t) BOOST_CHECK_EQUAL(boost::math::expint(boost::math::tools::log_max_value() * 2), std::numeric_limits::infinity()); if (boost::math::tools::log_max_value() < boost::math::tools::log_max_value()) { - BOOST_CHECK_EQUAL(boost::math::expint(boost::math::tools::log_max_value() * 2), std::numeric_limits::infinity()); + BOOST_CHECK_EQUAL(boost::math::expint(static_cast(boost::math::tools::log_max_value() * 2)), std::numeric_limits::infinity()); } BOOST_CHECK_EQUAL(boost::math::expint(boost::math::tools::log_max_value() + T(38)), std::numeric_limits::infinity()); if (boost::math::tools::log_max_value() < boost::math::tools::log_max_value()) { - BOOST_CHECK_EQUAL(boost::math::expint(boost::math::tools::log_max_value() + T(38)), std::numeric_limits::infinity()); + BOOST_CHECK_EQUAL(boost::math::expint(static_cast(boost::math::tools::log_max_value() + T(38))), std::numeric_limits::infinity()); } } else