diff --git a/std/thread/thread.hpp b/std/thread/thread.hpp index a70e289b5..7687d2007 100644 --- a/std/thread/thread.hpp +++ b/std/thread/thread.hpp @@ -31,9 +31,9 @@ struct __jule_thread_handle { } }; -__jule_thread_handle __jule_spawn_thread(const jule::Fn &routine) { +__jule_thread_handle __jule_spawn_thread(const jule::Fn &routine) { __jule_thread_handle jth; - jth._thread = jule::Ptr::make(new std::thread(routine.buffer)); + jth._thread = jule::Ptr::make(new std::thread(routine)); return jth; }