From 6ff3b03376884113bb14d4f2504638b69556e66a Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 18 Jun 2012 16:05:47 +0000 Subject: [PATCH] fix IPv6-only operation of Windows binaries the SOCKET type is unsigned on Windows, and should be casted to an int before comparing with the highestfd variable (note: ``int highestfd = -1;'') From /dev/humancontroller. --- code/qcommon/net_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index 123b8557..262ae7c3 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -1672,7 +1672,7 @@ void NET_Sleep(int msec) { FD_SET(ip6_socket, &fdr); - if(ip6_socket > highestfd) + if((int)ip6_socket > highestfd) highestfd = ip6_socket; }