3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

MPF conversion bugfix.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2013-06-14 17:22:25 +01:00
parent 1a26c9726b
commit 76c59cb85c
2 changed files with 9 additions and 5 deletions

View file

@ -367,7 +367,7 @@ void mpf_manager::set(mpf & o, unsigned ebits, unsigned sbits, mpf_rounding_mode
o.ebits = ebits;
o.sbits = sbits;
signed ds = sbits - x.sbits + 4; // plus rounding bits
signed ds = sbits - x.sbits + 3; // plus rounding bits
if (ds > 0)
{
m_mpz_manager.mul2k(o.significand, ds);