summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/factorials.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/factorials.hpp')
-rw-r--r--boost/math/special_functions/factorials.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/math/special_functions/factorials.hpp b/boost/math/special_functions/factorials.hpp
index de24642..e36a098 100644
--- a/boost/math/special_functions/factorials.hpp
+++ b/boost/math/special_functions/factorials.hpp
@@ -151,7 +151,7 @@ T rising_factorial_imp(T x, int n, const Policy& pol)
if((x < 1) && (x + n < 0))
{
T val = boost::math::tgamma_delta_ratio(1 - x, static_cast<T>(-n), pol);
- return (n & 1) ? -val : val;
+ return (n & 1) ? T(-val) : val;
}
//
// We don't optimise this for small n, because