Skip to content

Commit

Permalink
BUG: return str in all cases, from MDD.to_expr()
Browse files Browse the repository at this point in the history
Found by `pytype`.
  • Loading branch information
johnyf committed Dec 8, 2023
1 parent 1fff92d commit 8367f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dd/mdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ def collect_garbage(self, roots=None):

def to_expr(self, u):
if u == 1:
return u
return str(u)
elif u == -1:
return 0
return '0'
t = self._succ[abs(u)]
i = t[0]
nodes = t[1:]
Expand Down

0 comments on commit 8367f2e

Please sign in to comment.