Skip to content

Commit c8746e2

Browse files
pi314mmMatias Scharager
andauthored
Fix operand in fat pointer comparison (rust-lang#3297)
Fixing a typo that causes potential issues in compilation. Co-authored-by: Matias Scharager <[email protected]>
1 parent 997c95c commit c8746e2

File tree

1 file changed

+1
-1
lines changed
  • kani-compiler/src/codegen_cprover_gotoc/codegen

1 file changed

+1
-1
lines changed

kani-compiler/src/codegen_cprover_gotoc/codegen/rvalue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl<'tcx> GotocCtx<'tcx> {
5757
) -> Expr {
5858
debug!(?op, ?left_op, ?right_op, "codegen_comparison_fat_ptr");
5959
let left_typ = self.operand_ty_stable(left_op);
60-
let right_typ = self.operand_ty_stable(left_op);
60+
let right_typ = self.operand_ty_stable(right_op);
6161
assert_eq!(left_typ, right_typ, "Cannot compare pointers of different types");
6262
assert!(self.is_fat_pointer_stable(left_typ));
6363

0 commit comments

Comments
 (0)