Skip to content

Commit

Permalink
convert numbers to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimosts committed Oct 18, 2023
1 parent 2ef3f91 commit 4a1cee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpmpy/solvers/choco.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def solver_var(self, cpm_var):
if cpm_var < -2147483646 or cpm_var > 2147483646:
raise ChocoBoundsException(
"Choco does not accept integer literals with bounds outside of range (-2147483646..2147483646)")
return cpm_var
return int(cpm_var)

# special case, negative-bool-view
# work directly on var inside the view
Expand Down

0 comments on commit 4a1cee9

Please sign in to comment.