Skip to content

Commit

Permalink
keep constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout4 committed Jan 12, 2024
1 parent 2c66904 commit d187b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpmpy/transformations/flatten_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def get_or_make_boolvar(expr):
"""
isbool = is_boolexpr(expr)
if __is_flat_var(expr):
if isbool:
if isbool or is_num(expr):
return (expr, [])
else:
bv = _BoolVarImpl()
Expand Down

0 comments on commit d187b53

Please sign in to comment.