diff options
| author | gingerBill <bill@gingerbill.org> | 2024-06-29 12:40:04 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-06-29 12:40:04 +0100 |
| commit | c88a1bef91c56e8b2732077965381156032805d3 (patch) | |
| tree | d5c8c31277c0049eeb40cdf7ce04aad0f09253d8 /core/net/socket_linux.odin | |
| parent | 706adb12323016999692ff6acb62d39d6dc91299 (diff) | |
Add another `-vet-cast` check
Diffstat (limited to 'core/net/socket_linux.odin')
| -rw-r--r-- | core/net/socket_linux.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/net/socket_linux.odin b/core/net/socket_linux.odin index a4d75b92b..dc960a5fb 100644 --- a/core/net/socket_linux.odin +++ b/core/net/socket_linux.odin @@ -80,14 +80,14 @@ _unwrap_os_addr :: proc "contextless" (endpoint: Endpoint)->(linux.Sock_Addr_Any ipv4 = { sin_family = .INET, sin_port = u16be(endpoint.port), - sin_addr = transmute([4]u8) endpoint.address.(IP4_Address), + sin_addr = ([4]u8)(endpoint.address.(IP4_Address)), }, } case IP6_Address: return { ipv6 = { sin6_port = u16be(endpoint.port), - sin6_addr = transmute([16]u8) endpoint.address.(IP6_Address), + sin6_addr = transmute([16]u8)endpoint.address.(IP6_Address), sin6_family = .INET6, }, } |