3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-19 10:52:02 +00:00

Fixed sign bug in mpf fp.fma. Relates to #872.

This commit is contained in:
Christoph M. Wintersteiger 2017-07-28 21:39:44 +01:00
parent a30c343d7a
commit e677030b74

View file

@ -888,7 +888,7 @@ void mpf_manager::fma(mpf_rounding_mode rm, mpf const & x, mpf const & y, mpf co
if (m_mpz_manager.is_neg(res.significand())) { if (m_mpz_manager.is_neg(res.significand())) {
m_mpz_manager.abs(res.significand()); m_mpz_manager.abs(res.significand());
res.get().sign |= c.sign(); res.get().sign = !res.sign();
} }
} }
else { else {