summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/next.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/next.hpp')
-rw-r--r--boost/math/special_functions/next.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/math/special_functions/next.hpp b/boost/math/special_functions/next.hpp
index a63983e1c3..e27bf0ed95 100644
--- a/boost/math/special_functions/next.hpp
+++ b/boost/math/special_functions/next.hpp
@@ -73,7 +73,7 @@ inline T normalize_value(const T& val, const mpl::true_&)
BOOST_STATIC_ASSERT(std::numeric_limits<T>::is_specialized);
BOOST_STATIC_ASSERT(std::numeric_limits<T>::radix != 2);
- boost::intmax_t shift = std::numeric_limits<T>::digits - ilogb(val) - 1;
+ boost::intmax_t shift = (boost::intmax_t)std::numeric_limits<T>::digits - (boost::intmax_t)ilogb(val) - 1;
T result = scalbn(val, shift);
result = round(result);
return scalbn(result, -shift);