From 9561623736e5bd0ff8d9db67fe3291e623854664 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Tue, 6 Jan 2015 18:06:10 +0000 Subject: [PATCH] [Beta/Gamma]Fix concept failures caused by previous commit. --- include/boost/math/special_functions/beta.hpp | 2 +- include/boost/math/special_functions/gamma.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/math/special_functions/beta.hpp b/include/boost/math/special_functions/beta.hpp index 03b8e4e52..981b11565 100644 --- a/include/boost/math/special_functions/beta.hpp +++ b/include/boost/math/special_functions/beta.hpp @@ -875,7 +875,7 @@ T binomial_ccdf(T n, T k, T x, T y) // we'll have to sum the terms the old fashioned way: for(unsigned i = start - 1; i > k; --i) { - result += pow(x, i) * pow(y, n - i) * boost::math::binomial_coefficient(itrunc(n), itrunc(i)); + result += pow(x, (int)i) * pow(y, n - i) * boost::math::binomial_coefficient(itrunc(n), itrunc(i)); } } else diff --git a/include/boost/math/special_functions/gamma.hpp b/include/boost/math/special_functions/gamma.hpp index ea3611138..1db1e4c2d 100644 --- a/include/boost/math/special_functions/gamma.hpp +++ b/include/boost/math/special_functions/gamma.hpp @@ -1579,6 +1579,7 @@ T tgamma_ratio_imp(T x, T y, const Policy& pol) template T gamma_p_derivative_imp(T a, T x, const Policy& pol) { + BOOST_MATH_STD_USING // // Usual error checks first: //