summaryrefslogtreecommitdiff
path: root/boost/multiprecision/gmp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/multiprecision/gmp.hpp')
-rw-r--r--boost/multiprecision/gmp.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/multiprecision/gmp.hpp b/boost/multiprecision/gmp.hpp
index 266aff2285..6fd6204c4c 100644
--- a/boost/multiprecision/gmp.hpp
+++ b/boost/multiprecision/gmp.hpp
@@ -865,7 +865,7 @@ inline void eval_convert_to(long* result, const gmp_float<digits10>& val) BOOST_
{
if(0 == mpf_fits_slong_p(val.data()))
{
- *result = (std::numeric_limits<unsigned long>::max)();
+ *result = (std::numeric_limits<long>::max)();
*result *= mpf_sgn(val.data());
}
else