From ef2312dfd53ac5d61ecf295c5283689a3cec10e2 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Wed, 7 Jan 2015 18:38:11 +0000 Subject: [PATCH] [Carlson elliptic integrals] Fix missing return statement. --- include/boost/math/special_functions/ellint_rd.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/math/special_functions/ellint_rd.hpp b/include/boost/math/special_functions/ellint_rd.hpp index 09051a5c2..af4323bcd 100644 --- a/include/boost/math/special_functions/ellint_rd.hpp +++ b/include/boost/math/special_functions/ellint_rd.hpp @@ -72,7 +72,7 @@ T ellint_rd_imp(T x, T y, T z, const Policy& pol) } else { - 3 * (ellint_rc_imp(x, y, pol) - sqrt(x) / y) / (2 * (y - x)); + return 3 * (ellint_rc_imp(x, y, pol) - sqrt(x) / y) / (2 * (y - x)); } } if(x == y)