mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
fix #5449
This commit is contained in:
parent
a4cc9e7895
commit
123c446395
|
@ -260,6 +260,7 @@ void mpq_manager<SYNCH>::set(mpq & a, char const * val) {
|
||||||
if (exp > 0) {
|
if (exp > 0) {
|
||||||
_scoped_numeral<mpq_manager<SYNCH>> _exp(*this);
|
_scoped_numeral<mpq_manager<SYNCH>> _exp(*this);
|
||||||
_scoped_numeral<mpq_manager<SYNCH>> _qten(*this);
|
_scoped_numeral<mpq_manager<SYNCH>> _qten(*this);
|
||||||
|
_qten = 10;
|
||||||
power(_qten, static_cast<unsigned>(exp), _exp);
|
power(_qten, static_cast<unsigned>(exp), _exp);
|
||||||
TRACE("mpq_set", tout << "a: " << to_string(a) << ", exp_sign:" << exp_sign << ", exp: " << exp << " " << to_string(_exp) << std::endl;);
|
TRACE("mpq_set", tout << "a: " << to_string(a) << ", exp_sign:" << exp_sign << ", exp: " << exp << " " << to_string(_exp) << std::endl;);
|
||||||
if (exp_sign)
|
if (exp_sign)
|
||||||
|
|
Loading…
Reference in a new issue