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

Bugfix for float-to-float conversion.

Fixes #77
This commit is contained in:
Christoph M. Wintersteiger 2015-05-22 20:30:12 +01:00
parent 8fc0ba0ab5
commit 6f6cd61817
2 changed files with 78 additions and 40 deletions

View file

@ -348,7 +348,7 @@ void mpf_manager::set(mpf & o, unsigned ebits, unsigned sbits, mpf_rounding_mode
bool sticky = false;
while (ds < 0)
{
if (!m_mpz_manager.is_even(o.significand)) sticky = true;
sticky |= m_mpz_manager.is_odd(o.significand);
m_mpz_manager.machine_div2k(o.significand, 1);
ds++;
}