1
Fork 0

rt: Fix size miscalculation in ivec_reserve

This commit is contained in:
Patrick Walton 2011-06-19 17:16:21 -07:00
parent 6cf9b17086
commit 8cdef277b2

View file

@ -629,7 +629,7 @@ ivec_reserve(rust_task *task, type_desc *ty, rust_ivec *v, size_t n_elems)
} else {
// On heap; resize.
heap_part = (rust_ivec_heap *)task->realloc(v->payload.ptr,
new_alloc);
new_alloc + sizeof(size_t));
v->payload.ptr = heap_part;
}