3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-31 19:29:13 +00:00

Fix concat() in c++ api

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
This commit is contained in:
Nuno Lopes 2015-05-15 09:01:56 +01:00
parent 09afb31d4c
commit 1dc17db56a

View file

@ -1111,9 +1111,10 @@ namespace z3 {
} }
inline expr concat(expr const& a, expr const& b) { inline expr concat(expr const& a, expr const& b) {
Z3_ast r = Z3_mk_concat(ctx, (Z3_app) a, (Z3_app) b); check_context(a, b);
ctx.check_error(); Z3_ast r = Z3_mk_concat(a.ctx(), a, b);
return expr(ctx, r); a.ctx().check_error();
return expr(a.ctx(), r);
} }
class func_entry : public object { class func_entry : public object {