3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

handle signed characters convertions into unsigned numbers

This commit is contained in:
Nikolaj Bjorner 2021-01-26 11:20:28 -08:00
parent 7dd7d83a36
commit a0b7879dd9

View file

@ -61,7 +61,7 @@ extern "C" {
LOG_Z3_mk_string(c, str);
RESET_ERROR_CODE();
unsigned_vector chs;
for (unsigned i = 0; i < sz; ++i) chs.push_back(str[i]);
for (unsigned i = 0; i < sz; ++i) chs.push_back((unsigned char)str[i]);
zstring s(sz, chs.c_ptr());
app* a = mk_c(c)->sutil().str.mk_string(s);
mk_c(c)->save_ast_trail(a);