From 59ba37f23266a5541002b4beb057837a207793f0 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Thu, 12 Jun 2025 16:05:34 +0200 Subject: [PATCH] Remove transmute --- core/thread/thread_unix.odin | 4 ++-- 1 file 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 }