Fix typo in rust_task::start. Should be copying 1 fewer initial arg.
This commit is contained in:
parent
60f97aa9cc
commit
aaa6965794
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user