rt: Add room for the new fill slot when resizing interior vectors

This commit is contained in:
Patrick Walton 2011-06-29 14:22:23 -07:00
parent e1927553a5
commit be50cdd24a
1 changed files with 1 additions and 1 deletions

View File

@ -567,7 +567,7 @@ upcall_ivec_resize(rust_task *task,
size_t new_alloc = next_power_of_two(newsz);
rust_ivec_heap *new_heap_part = (rust_ivec_heap *)
task->realloc(v->payload.ptr, new_alloc);
task->realloc(v->payload.ptr, new_alloc + sizeof(size_t));
new_heap_part->fill = newsz;
v->alloc = new_alloc;