mirror of https://github.com/rust-lang/rust.git
rt: Add room for the new fill slot when resizing interior vectors
This commit is contained in:
parent
e1927553a5
commit
be50cdd24a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue