diff options
| author | Roy Frostig <rfrostig@mozilla.com> | 2010-07-25 22:21:07 -0700 |
|---|---|---|
| committer | Roy Frostig <rfrostig@mozilla.com> | 2010-07-25 22:21:07 -0700 |
| commit | 085cd2ee7dbe35a0c854d78f0e85218c6053a357 (patch) | |
| tree | 3bf1333f30050acd12e24be93306fa660f1ab878 /src/rt/rust_builtin.cpp | |
| parent | beca62e2e3db5c5540003de9aac2766a7f1ab9b9 (diff) | |
| download | rust-085cd2ee7dbe35a0c854d78f0e85218c6053a357.tar.gz rust-085cd2ee7dbe35a0c854d78f0e85218c6053a357.zip | |
vec_alloc takes four arguments these days, not three.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index e8d2d67d3c7..0879681c87d 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -102,7 +102,7 @@ vec_alloc(rust_task *task, type_desc *t, type_desc *elem_t, size_t n_elts) size_t alloc = next_power_of_two(sizeof(rust_vec) + fill); void *mem = task->malloc(alloc, t->is_stateful ? t : NULL); if (!mem) { - task->fail(3); + task->fail(4); return NULL; } rust_vec *vec = new (mem) rust_vec(dom, alloc, 0, NULL); |
