diff options
Diffstat (limited to 'boost/math/special_functions/detail/polygamma.hpp')
-rw-r--r-- | boost/math/special_functions/detail/polygamma.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/math/special_functions/detail/polygamma.hpp b/boost/math/special_functions/detail/polygamma.hpp index 0267bd3ac8..20a0292fb4 100644 --- a/boost/math/special_functions/detail/polygamma.hpp +++ b/boost/math/special_functions/detail/polygamma.hpp @@ -239,7 +239,7 @@ if(boost::math::tools::max_value<T>() / scale < sum) return boost::math::policies::raise_overflow_error<T>(function, 0, pol); sum *= scale; - return n & 1 ? sum : -sum; + return n & 1 ? sum : T(-sum); } // |