From 1b63ffe8f02ad4145846eeeeec9d84d45f509274 Mon Sep 17 00:00:00 2001 From: "Paul A. Bristow" Date: Tue, 30 Nov 2010 14:36:45 +0000 Subject: [PATCH] Corrected missing casts int 0 to RealType [SVN r66891] --- include/boost/math/distributions/inverse_gamma.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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