diff --git a/artiq/compiler/iodelay.py b/artiq/compiler/iodelay.py index 71e137df9..b575caac7 100644 --- a/artiq/compiler/iodelay.py +++ b/artiq/compiler/iodelay.py @@ -121,7 +121,7 @@ class BinOp(Expr): return "{} {} {}".format(lhs, self._symbol, rhs) def __eq__(lhs, rhs): - return rhs.__class__ == lhs.__class__ and lhs.lhs == rhs.lhs and rhs.lhs == rhs.rhs + return rhs.__class__ == lhs.__class__ and lhs.lhs == rhs.lhs and lhs.rhs == rhs.rhs def eval(self, env): return self.__class__._op(self.lhs.eval(env), self.rhs.eval(env))