about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-02-21 18:55:08 -0800
committerGraydon Hoare <graydon@mozilla.com>2011-02-21 18:55:08 -0800
commitaaa6965794b9ff0d942a1367bc7b99f52fd49f99 (patch)
tree93b994c8452bd7392b118acb37f7b075d5798b76 /src/rt/rust_task.cpp
parent60f97aa9cc73ee4e0b57abc07dc543c8fa823ee2 (diff)
downloadrust-aaa6965794b9ff0d942a1367bc7b99f52fd49f99.tar.gz
rust-aaa6965794b9ff0d942a1367bc7b99f52fd49f99.zip
Fix typo in rust_task::start. Should be copying 1 fewer initial arg.
Diffstat (limited to 'src/rt/rust_task.cpp')
-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 68882b21882..3564b9e342e 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);