Begin comparing vectors from the correct address

Start at the first element instead of the address of the vector.
This commit is contained in:
Brian Anderson 2011-04-03 03:09:20 -04:00
parent 8e9c5b96fb
commit bd9f45446a

View File

@ -2721,7 +2721,7 @@ fn trans_compare(@block_ctxt cx0, ast.binop op, @ty.t t0,
auto elt_ty = ty.sequence_element_type(t);
auto elt_llsz_r = size_of(scx, elt_ty);
scx = elt_llsz_r.bcx;
r = iter_sequence_raw(scx, lhs, rhs, rhs_lim,
r = iter_sequence_raw(scx, lhs_p0, rhs_p0, rhs_lim,
elt_llsz_r.val,
bind inner(next, true, flag, op,
_, _, _, elt_ty));