Fix off-by-one in vector append code.

This commit is contained in:
Graydon Hoare 2011-03-06 23:06:01 -08:00
parent 386ba3ae63
commit 2cbfb8795d

View File

@ -5571,9 +5571,7 @@ fn trans_vec_append_glue(@crate_ctxt cx) {
n_bytes).bcx;
put_vec_fill(copy_dst_cx, llnew_vec, n_bytes);
copy_dst_cx.build.Store(vec_p1_adjusted(copy_dst_cx,
llnew_vec, llskipnull),
pp0);
copy_dst_cx.build.Store(vec_p1(copy_dst_cx, llnew_vec), pp0);
copy_dst_cx.build.Br(copy_src_cx.llbb);