3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 23:05:46 +00:00
This commit is contained in:
Nikolaj Bjorner 2019-03-09 19:31:37 -08:00
commit 376076ea9b
22 changed files with 56 additions and 102 deletions

View file

@ -120,8 +120,7 @@ extern "C" {
SET_ERROR_CODE(Z3_INVALID_ARG, "expression is not a string literal");
return "";
}
std::string s = str.encode();
return mk_c(c)->mk_external_string(s);
return mk_c(c)->mk_external_string(str.encode());
Z3_CATCH_RETURN("");
}