Try to use double in set_multiplier for wide_integer_from_builtin

This commit is contained in:
vdimir 2022-02-09 14:27:21 +01:00
parent 662444fe13
commit 4b1325ba63
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -310,11 +310,7 @@ struct integer<Bits, Signed>::_impl
return;
}
const long double rhs_long_double = (static_cast<long double>(rhs) < 0)
? -static_cast<long double>(rhs)
: rhs;
set_multiplier(self, rhs_long_double);
set_multiplier(self, rhs);
if (rhs < 0)
self = -self;