Fix typo in rust_task::start. Should be copying 1 fewer initial arg.

This commit is contained in:
Graydon Hoare 2011-02-21 18:55:08 -08:00
parent 60f97aa9cc
commit aaa6965794

View File

@ -174,8 +174,8 @@ rust_task::start(uintptr_t exit_task_glue,
src += 1; // spawn-call output slot src += 1; // spawn-call output slot
src += 1; // spawn-call task slot src += 1; // spawn-call task slot
src += 1; // spawn-call closure-or-obj slot src += 1; // spawn-call closure-or-obj slot
// Memcpy all but the task and output pointers // Memcpy all but the task, output and env pointers
callsz -= (2 * sizeof(uintptr_t)); callsz -= (3 * sizeof(uintptr_t));
spp = (uintptr_t*) (((uintptr_t)spp) - callsz); spp = (uintptr_t*) (((uintptr_t)spp) - callsz);
memcpy(spp, src, callsz); memcpy(spp, src, callsz);