diff options
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index b387078a75a..4f951a7faf0 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -421,15 +421,15 @@ rust_get_task() { } struct fn_env_pair { - intptr_t f; - intptr_t env; + spawn_fn f; + rust_boxed_closure *env; }; extern "C" CDECL void start_task(rust_task_id id, fn_env_pair *f) { rust_task *task = rust_scheduler::get_task(); rust_task *target = task->kernel->get_task_by_id(id); - target->start((spawn_fn)f->f, f->env); + target->start(f->f, f->env, NULL); target->deref(); } |
