diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-06-29 14:22:23 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-06-30 11:35:05 -0700 |
| commit | be50cdd24ad3a47413d8cacfcdcdb5b293201490 (patch) | |
| tree | 457e580270901240bc3852cc36974f4e590b44d0 /src/rt/rust_upcall.cpp | |
| parent | e1927553a58ec0665c18a579b9582b9bfcfbbf13 (diff) | |
| download | rust-be50cdd24ad3a47413d8cacfcdcdb5b293201490.tar.gz rust-be50cdd24ad3a47413d8cacfcdcdb5b293201490.zip | |
rt: Add room for the new fill slot when resizing interior vectors
Diffstat (limited to 'src/rt/rust_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index d16691ee7ca..4f7dccc4652 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -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; |
