From d1215bf5acef353dbf715cc6ad2b5a0c9e7f5bf0 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Thu, 19 Aug 2021 11:45:33 +0800 Subject: [PATCH] nac3core/codegen/expr: fixed typo --- nac3core/src/codegen/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/codegen/expr.rs b/nac3core/src/codegen/expr.rs index 59bb0430..81a2161b 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);