Skip to content

Commit

Permalink
Replace unneeded transmute
Browse files Browse the repository at this point in the history
  • Loading branch information
Feoramund committed Jun 30, 2024
1 parent 1e7dfd0 commit 8e64265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/net/test_core_net.odin
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ client_sends_server_data :: proc(t: ^testing.T) {
}

tcp_client :: proc(thread_data: rawptr) {
r := transmute(^Thread_Data)thread_data
r := cast(^Thread_Data)thread_data

defer sync.wait_group_done(r.wg)

Expand All @@ -274,7 +274,7 @@ client_sends_server_data :: proc(t: ^testing.T) {
}

tcp_server :: proc(thread_data: rawptr) {
r := transmute(^Thread_Data)thread_data
r := cast(^Thread_Data)thread_data

defer sync.wait_group_done(r.wg)

Expand Down

0 comments on commit 8e64265

Please sign in to comment.