diff --git a/nac3core/src/codegen/expr.rs b/nac3core/src/codegen/expr.rs index 59bb04300..81a2161ba 100644 --- a/nac3core/src/codegen/expr.rs +++ b/nac3core/src/codegen/expr.rs @@ -372,7 +372,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> { } ExprKind::BinOp { op, left, right } => { let ty1 = self.unifier.get_representative(left.custom.unwrap()); - let ty2 = self.unifier.get_representative(left.custom.unwrap()); + let ty2 = self.unifier.get_representative(right.custom.unwrap()); let left = self.gen_expr(left); let right = self.gen_expr(right);