Skip to content

Commit

Permalink
REF: cast int as int, for pytype checking
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyf committed Dec 8, 2023
1 parent 8367f2e commit b8d4cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dd/mdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def bdd_to_mdd(bdd, dvars):

def _enumerate_integer(bits):
n = len(bits)
for i in range(2**n):
for i in range(int(2**n)):
values = list(reversed(bin(i).lstrip('-0b').zfill(n)))
d = {bit: int(v) for bit, v in zip(bits, values)}
for bit in bits[len(values):]:
Expand Down

0 comments on commit b8d4cb4

Please sign in to comment.