mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
fix #7523
This commit is contained in:
parent
4fce314bf2
commit
ef275ab1a0
|
@ -235,9 +235,7 @@ extern "C" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mk_c(c)->fpautil().is_numeral(to_expr(a), tmp)) {
|
else if (mk_c(c)->fpautil().is_numeral(to_expr(a), tmp)) {
|
||||||
std::ostringstream buffer;
|
return mk_c(c)->mk_external_string(fu.fm().to_rational_string(tmp));
|
||||||
fu.fm().display_smt2(buffer, tmp, false);
|
|
||||||
return mk_c(c)->mk_external_string(std::move(buffer).str());
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SET_ERROR_CODE(Z3_INVALID_ARG, nullptr);
|
SET_ERROR_CODE(Z3_INVALID_ARG, nullptr);
|
||||||
|
|
Loading…
Reference in a new issue