Skip to content

Commit 59ba37f

Browse files
committed
Remove transmute
1 parent 994b5a2 commit 59ba37f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/thread/thread_unix.odin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread {
125125

126126

127127
when size_of(posix.pthread_t) == size_of(i64) {
128-
thread.id = int(transmute(i64)thread.unix_thread)
128+
thread.id = int((^i64)(&thread.unix_thread)^)
129129
} else {
130-
thread.id = int(transmute(i32)thread.unix_thread)
130+
thread.id = int((^i32)(&thread.unix_thread)^)
131131
}
132132
return thread
133133
}

0 commit comments

Comments
 (0)