diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-05-23 17:12:02 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-05-30 21:23:34 -0700 |
| commit | 70ecfa686a58f331443391c1f473fac2852e7f83 (patch) | |
| tree | 9b68d251ba5f2261d4d71d7e871021d5f9818ccf /src/rt/rust_builtin.cpp | |
| parent | 3f8223ffc2b820108677ca9c69e3db98af1b157d (diff) | |
| download | rust-70ecfa686a58f331443391c1f473fac2852e7f83.tar.gz rust-70ecfa686a58f331443391c1f473fac2852e7f83.zip | |
rt: Fix build errors on win
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 4f512390210..eebb114f5fc 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -95,10 +95,10 @@ rust_env_pairs() { ++envc; } c = ch; - rust_vec *v = (rust_vec *) - task->kernel->malloc(vec_size<rust_vec*>(envc), + rust_vec_box *v = (rust_vec_box *) + task->kernel->malloc(vec_size<rust_vec_box*>(envc), "str vec interior"); - v->fill = v->alloc = sizeof(rust_vec*) * envc; + v->body.fill = v->body.alloc = sizeof(rust_vec*) * envc; for (size_t i = 0; i < envc; ++i) { size_t n = strlen(c); rust_str *str = make_str(task->kernel, c, n, "str"); |
