forked from M-Labs/artiq
1
0
Fork 0

compiler.iodelay: fix typo in Var.__eq__.

This commit is contained in:
whitequark 2015-11-17 00:53:12 +03:00
parent a2d73c8b05
commit 841e01a8bb
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class Var(Expr):
return self.name
def __eq__(lhs, rhs):
return rhs.__class__ == lhs.__class__ and lhs.value == rhs.value
return rhs.__class__ == lhs.__class__ and lhs.name == rhs.name
def free_vars(self):
return {self.name}