From 4d65b1ab9cb86bcbbfb0e5b26e3552f6f3582004 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Wed, 18 Oct 2023 01:57:26 +1100 Subject: Implement new sys/unix package --- core/net/socket.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/net/socket.odin') diff --git a/core/net/socket.odin b/core/net/socket.odin index 8cdf7cceb..40fa6ab56 100644 --- a/core/net/socket.odin +++ b/core/net/socket.odin @@ -18,7 +18,7 @@ package net Jeroen van Rijn: Cross platform unification, code style, documentation */ -any_socket_to_socket :: proc(socket: Any_Socket) -> Socket { +any_socket_to_socket :: proc "contextless" (socket: Any_Socket) -> Socket { switch s in socket { case TCP_Socket: return Socket(s) case UDP_Socket: return Socket(s) -- cgit v1.2.3