Skip to content

Commit bd9f454

Browse files
committed
Begin comparing vectors from the correct address
Start at the first element instead of the address of the vector.
1 parent 8e9c5b9 commit bd9f454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2721,7 +2721,7 @@ fn trans_compare(@block_ctxt cx0, ast.binop op, @ty.t t0,
27212721
auto elt_ty = ty.sequence_element_type(t);
27222722
auto elt_llsz_r = size_of(scx, elt_ty);
27232723
scx = elt_llsz_r.bcx;
2724-
r = iter_sequence_raw(scx, lhs, rhs, rhs_lim,
2724+
r = iter_sequence_raw(scx, lhs_p0, rhs_p0, rhs_lim,
27252725
elt_llsz_r.val,
27262726
bind inner(next, true, flag, op,
27272727
_, _, _, elt_ty));

0 commit comments

Comments
 (0)