diff options
| author | Brian Anderson <[email protected]> | 2011-04-03 03:09:20 -0400 |
|---|---|---|
| committer | Brian Anderson <[email protected]> | 2011-04-03 03:09:20 -0400 |
| commit | bd9f45446a747da26382f08f1769ef98b8e43898 (patch) | |
| tree | 1f1a60eec41e1f11e9b64e59a5e62b07e85789b5 /src | |
| parent | Change rust_vec to have a 16-byte header, to 16-byte-align vec-body data. Maj... (diff) | |
| download | rust-bd9f45446a747da26382f08f1769ef98b8e43898.tar.xz rust-bd9f45446a747da26382f08f1769ef98b8e43898.zip | |
Begin comparing vectors from the correct address
Start at the first element instead of the address of the vector.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/middle/trans.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index ee3ea2cd..590b3ee8 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -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)); |