Skip to content

Commit

Permalink
fix #6682
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Apr 11, 2023
1 parent 368d60f commit ccc4f2d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/python/z3/z3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3173,12 +3173,8 @@ def _to_int_str(val):
return "1"
else:
return "0"
elif _is_int(val):
else:
return str(val)
elif isinstance(val, str):
return val
if z3_debug():
_z3_assert(False, "Python value cannot be used as a Z3 integer")


def IntVal(val, ctx=None):
Expand Down

0 comments on commit ccc4f2d

Please sign in to comment.