From 32d81ce98d2cb4b40b072bdb09cc242ddab8a644 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 1 Mar 2025 12:48:34 +0100 Subject: [PATCH] Fixed server example for Mac --- lib/net/net_mac.q | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/net_mac.q b/lib/net/net_mac.q index ce2de78..9dd1e23 100644 --- a/lib/net/net_mac.q +++ b/lib/net/net_mac.q @@ -1,6 +1,6 @@ import sys -bind(socket int, port int) -> int { +bind(socket int, port uint16) -> int { addr := new(sys.sockaddr_in_bsd) addr.sin_family = 2 addr.sin_port = htons(port)