diff options
| author | Graydon Hoare <[email protected]> | 2011-02-21 18:55:08 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-02-21 18:55:08 -0800 |
| commit | aaa6965794b9ff0d942a1367bc7b99f52fd49f99 (patch) | |
| tree | 93b994c8452bd7392b118acb37f7b075d5798b76 | |
| parent | Find main functions buried within modules. Un-XFAIL import.rs. (diff) | |
| download | rust-aaa6965794b9ff0d942a1367bc7b99f52fd49f99.tar.xz rust-aaa6965794b9ff0d942a1367bc7b99f52fd49f99.zip | |
Fix typo in rust_task::start. Should be copying 1 fewer initial arg.
| -rw-r--r-- | src/rt/rust_task.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 68882b21..3564b9e3 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -174,8 +174,8 @@ rust_task::start(uintptr_t exit_task_glue, src += 1; // spawn-call output slot src += 1; // spawn-call task slot src += 1; // spawn-call closure-or-obj slot - // Memcpy all but the task and output pointers - callsz -= (2 * sizeof(uintptr_t)); + // Memcpy all but the task, output and env pointers + callsz -= (3 * sizeof(uintptr_t)); spp = (uintptr_t*) (((uintptr_t)spp) - callsz); memcpy(spp, src, callsz); |