summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2012-06-18 16:05:47 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:30:54 +0000
commit6f0d05eda1a7f89c6297ac15f7fce2f994e71151 (patch)
tree9648f5755952ac3fa6bac6d18eabebd8bc5c6b2d /src
parent1adcd50fd67592ae53cf9e5e62bdc34ff5b58480 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/qcommon/net_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c
index f7531c6e..6b4161a5 100644
--- a/src/qcommon/net_ip.c
+++ b/src/qcommon/net_ip.c
@@ -1669,7 +1669,7 @@ void NET_Sleep(int msec)
{
FD_SET(ip6_socket, &fdr);
- if(ip6_socket > highestfd)
+ if((int)ip6_socket > highestfd)
highestfd = ip6_socket;
}