From aaa6965794b9ff0d942a1367bc7b99f52fd49f99 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 21 Feb 2011 18:55:08 -0800 Subject: [PATCH] Fix typo in rust_task::start. Should be copying 1 fewer initial arg. --- src/rt/rust_task.cpp | 4 ++-- 1 file 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);