Skip to content

Commit

Permalink
python: Allow Python integers for mkBitVector().
Browse files Browse the repository at this point in the history
Fixes cvc5#10020.
  • Loading branch information
mpreiner committed Sep 12, 2023
1 parent 1e01d2a commit c77d141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/python/cvc5.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ cdef class Solver:
"Invalid second argument to mkBitVector '{}', "
"expected integer value".format(size))
term.cterm = self.csolver.mkBitVector(
<uint32_t> size, <uint32_t> val)
<uint32_t> size, <const string&> str(val).encode(), 10)
elif len(args) == 2:
val = args[0]
base = args[1]
Expand Down

0 comments on commit c77d141

Please sign in to comment.