diff --git a/include/boost/math/distributions/inverse_gamma.hpp b/include/boost/math/distributions/inverse_gamma.hpp index 4f274d9cf..4a2c3eaaf 100644 --- a/include/boost/math/distributions/inverse_gamma.hpp +++ b/include/boost/math/distributions/inverse_gamma.hpp @@ -128,7 +128,7 @@ template inline const std::pair range(const inverse_gamma_distribution& /* dist */) { // Range of permissible values for random variable x. using boost::math::tools::max_value; - return std::pair(0, max_value()); + return std::pair(static_cast(0), max_value()); } template @@ -137,7 +137,7 @@ inline const std::pair support(const inverse_gamma_distribut // This is range where cdf rises from 0 to 1, and outside it, the pdf is zero. using boost::math::tools::max_value; using boost::math::tools::min_value; - return std::pair(0, max_value()); + return std::pair(static_cast(0), max_value()); } template