SDL_net: ios: Fix compiler warnings on iOS.

From 4e3a7a1f88f31e65dd5cf84433694b9f9e43db40 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 18 May 2026 10:39:33 -0400
Subject: [PATCH] ios: Fix compiler warnings on iOS.

---
 src/SDL_net.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/SDL_net.c b/src/SDL_net.c
index 6b1e3ee..6bc9862 100644
--- a/src/SDL_net.c
+++ b/src/SDL_net.c
@@ -2097,7 +2097,7 @@ static NET_Status SendOneDatagram(NET_DatagramSocket *sock, NET_Address *addr, U
         for (int i = 0; i < sock->num_handles; i++) {
             const NET_DatagramSocketHandle *handle = &sock->handles[i];
             if ((handle->family == family) && (handle->protocol == protocol)) {  // !!! FIXME: strictly speaking, this _probably_ just needs to check `family`, right?
-                const int rc = sendto(handle->handle, buf, (size_t) buflen, 0, addrwithport->ai_addr, (SockLen) addrwithport->ai_addrlen);
+                const int rc = (int) sendto(handle->handle, buf, (size_t) buflen, 0, addrwithport->ai_addr, (SockLen) addrwithport->ai_addrlen);
                 const int err = (rc == SOCKET_ERROR) ? LastSocketError() : 0;
                 freeaddrinfo(addrwithport);
                 if (err != 0) {
@@ -2127,7 +2127,7 @@ static NET_Status SendOneDatagram(NET_DatagramSocket *sock, NET_Address *addr, U
             }
 
             //SDL_Log("Broadcasting on %s ...", handle->broadcast->human_readable);
-            const int rc = sendto(handle->handle, buf, (size_t) buflen, 0, addrwithport->ai_addr, (SockLen) addrwithport->ai_addrlen);
+            const int rc = (int) sendto(handle->handle, buf, (size_t) buflen, 0, addrwithport->ai_addr, (SockLen) addrwithport->ai_addrlen);
             const int err = (rc == SOCKET_ERROR) ? LastSocketError() : 0;
             freeaddrinfo(addrwithport);
             if (!err) {
@@ -2153,7 +2153,7 @@ static NET_Status SendOneDatagram(NET_DatagramSocket *sock, NET_Address *addr, U
                 }
 
                 //SDL_Log("Broadcasting on %s ...", bc->human_readable);
-                const int rc = sendto(handle->handle, buf, (size_t) buflen, 0, addrwithport->ai_addr, (SockLen) addrwithport->ai_addrlen);
+                const int rc = (int) sendto(handle->handle, buf, (size_t) buflen, 0, addrwithport->ai_addr, (SockLen) addrwithport->ai_addrlen);
                 const int err = (rc == SOCKET_ERROR) ? LastSocketError() : 0;
                 freeaddrinfo(addrwithport);
                 if (!err) {
@@ -2284,7 +2284,7 @@ bool NET_ReceiveDatagram(NET_DatagramSocket *sock, NET_Datagram **dgram)
         AddressStorage from;
         SockLen fromlen = sizeof (from);
         // WinSock's recvfrom wants a `char *` buffer instead of `void *`. The cast here is harmless on BSD Sockets.
-        const int br = recvfrom(sock->handles[i].handle, (char *) sock->recv_buffer, sizeof (sock->recv_buffer), 0, (struct sockaddr *) &from, &fromlen);
+        const int br = (int) recvfrom(sock->handles[i].handle, (char *) sock->recv_buffer, sizeof (sock->recv_buffer), 0, (struct sockaddr *) &from, &fromlen);
         if (br == SOCKET_ERROR) {
             const int err = LastSocketError();
             if (WouldBlock(err)) {