Skip to content

Commit

Permalink
fix #7081
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jan 16, 2024
1 parent afba43a commit c340233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/python/z3/z3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10969,10 +10969,10 @@ def CharVal(ch, ctx=None):
raise Z3Exception("character value should be an ordinal")
return _to_expr_ref(Z3_mk_char(ctx.ref(), ch), ctx)

def CharFromBv(ch, ctx=None):
if not is_expr(ch):
raise Z3Expression("Bit-vector expression needed")
return _to_expr_ref(Z3_mk_char_from_bv(ch.ctx_ref(), ch.as_ast()), ch.ctx)
def CharFromBv(bv):
if not is_expr(bv):
raise Z3Exception("Bit-vector expression needed")
return _to_expr_ref(Z3_mk_char_from_bv(bv.ctx_ref(), bv.as_ast()), bv.ctx)

def CharToBv(ch, ctx=None):
ch = _coerce_char(ch, ctx)
Expand Down

0 comments on commit c340233

Please sign in to comment.