diff --git a/include/boost/math/special_functions/detail/erf_inv.hpp b/include/boost/math/special_functions/detail/erf_inv.hpp index f5d8ee471..6ac1bcd93 100644 --- a/include/boost/math/special_functions/detail/erf_inv.hpp +++ b/include/boost/math/special_functions/detail/erf_inv.hpp @@ -282,7 +282,7 @@ struct erf_roots BOOST_MATH_STD_USING T derivative = sign * (2 / sqrt(constants::pi())) * exp(-(guess * guess)); T derivative2 = -2 * guess * derivative; - return boost::math::make_tuple(((sign > 0) ? boost::math::erf(guess, Policy()) : boost::math::erfc(guess, Policy())) - target, derivative, derivative2); + return boost::math::make_tuple(((sign > 0) ? boost::math::erf(guess, Policy()) : static_cast(boost::math::erfc(guess, Policy())) - target), derivative, derivative2); } erf_roots(T z, int s) : target(z), sign(s) {} private: diff --git a/include/boost/math/special_functions/detail/ibeta_inverse.hpp b/include/boost/math/special_functions/detail/ibeta_inverse.hpp index ccfa9197d..036998235 100644 --- a/include/boost/math/special_functions/detail/ibeta_inverse.hpp +++ b/include/boost/math/special_functions/detail/ibeta_inverse.hpp @@ -35,12 +35,12 @@ struct temme_root_finder if(y == 0) { T big = tools::max_value() / 4; - return boost::math::make_tuple(-big, -big); + return boost::math::make_tuple(static_cast(-big), static_cast(-big)); } if(x == 0) { T big = tools::max_value() / 4; - return boost::math::make_tuple(-big, big); + return boost::math::make_tuple(static_cast(-big), big); } T f = log(x) + a * log(y) + t; T f1 = (1 / x) - (a / (y)); diff --git a/include/boost/math/special_functions/detail/igamma_inverse.hpp b/include/boost/math/special_functions/detail/igamma_inverse.hpp index 53875ff83..5d8636dcd 100644 --- a/include/boost/math/special_functions/detail/igamma_inverse.hpp +++ b/include/boost/math/special_functions/detail/igamma_inverse.hpp @@ -378,7 +378,7 @@ struct gamma_p_inverse_func f2 = -f2; } - return boost::math::make_tuple(f - p, f1, f2); + return boost::math::make_tuple(static_cast(f - p), f1, f2); } private: T a, p;