aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-02-21 18:55:08 -0800
committerGraydon Hoare <[email protected]>2011-02-21 18:55:08 -0800
commitaaa6965794b9ff0d942a1367bc7b99f52fd49f99 (patch)
tree93b994c8452bd7392b118acb37f7b075d5798b76
parentFind main functions buried within modules. Un-XFAIL import.rs. (diff)
downloadrust-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.cpp4
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);