Fix warning 'comparison between signed and unsigned integer expressions'

With gcc on Windows.
This commit is contained in:
Nick Treleaven 2013-08-11 14:53:35 +01:00
parent 0c7cf8df10
commit 6d33485337

View File

@ -762,7 +762,11 @@ static gint socket_fd_check_io(gint fd, GIOCondition cond)
#endif
FD_ZERO(&fds);
#ifdef G_OS_WIN32
FD_SET((SOCKET)fd, &fds);
#else
FD_SET(fd, &fds);
#endif
if (cond == G_IO_IN)
{