mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-19 02:22:17 +00:00
Fix overflow error in mpf_float::eval_convert_to.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user