Skip to content

Commit

Permalink
fix IPv6-only operation of Windows binaries
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zturtleman committed Jun 18, 2012
1 parent c16338c commit 6ff3b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/qcommon/net_ip.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6ff3b03

Please sign in to comment.