diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-02-02 00:33:12 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-02-02 00:33:12 +0000 |
| commit | dadabf8b9d11d099777acc261068a3ed8ca06f24 (patch) | |
| tree | 00576af42db9b7006556d815600140867fa970bd /std | |
| parent | 6fde408251dcc0e32c6f513b5d65cc7a9d8c8912 (diff) | |
Fix concurrency suite compilation errors involving C typesdev/weilun/thread
Diffstat (limited to 'std')
| -rw-r--r-- | std/thread.zc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/thread.zc b/std/thread.zc index da21772..0722b60 100644 --- a/std/thread.zc +++ b/std/thread.zc @@ -108,10 +108,10 @@ impl Thread { memcpy(ctx, &func, 16); - let ret = _z_thread_spawn(ctx_copy, &t); + let ret = _z_thread_spawn(ctx, &out_handle); if ret != 0 { - free(ctx_copy); + free(ctx); return Result<Thread>::Err("Failed to create thread"); } |
