diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-12 16:05:34 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-12 16:05:34 +0200 |
| commit | 59ba37f23266a5541002b4beb057837a207793f0 (patch) | |
| tree | 84d0c8951b50e71312a3ff75d506d1c322503117 /core/thread | |
| parent | 994b5a2a6c340285f7a437cb9a4710e1a81e1525 (diff) | |
Remove transmute
Diffstat (limited to 'core/thread')
| -rw-r--r-- | core/thread/thread_unix.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/thread/thread_unix.odin b/core/thread/thread_unix.odin index 1df446b86..da5929d1d 100644 --- a/core/thread/thread_unix.odin +++ b/core/thread/thread_unix.odin @@ -125,9 +125,9 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread { when size_of(posix.pthread_t) == size_of(i64) { - thread.id = int(transmute(i64)thread.unix_thread) + thread.id = int((^i64)(&thread.unix_thread)^) } else { - thread.id = int(transmute(i32)thread.unix_thread) + thread.id = int((^i32)(&thread.unix_thread)^) } return thread } |