summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/ellint_2.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/ellint_2.hpp')
-rw-r--r--boost/math/special_functions/ellint_2.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/math/special_functions/ellint_2.hpp b/boost/math/special_functions/ellint_2.hpp
index 0d160ecdf1..7c1eab45c2 100644
--- a/boost/math/special_functions/ellint_2.hpp
+++ b/boost/math/special_functions/ellint_2.hpp
@@ -74,7 +74,7 @@ T ellint_e_imp(T phi, T k, const Policy& pol)
}
else if(fabs(k) == 1)
{
- return invert ? T(-sin(phi)) : sin(phi);
+ return invert ? T(-sin(phi)) : T(sin(phi));
}
else
{