FD_SETSIZE can be unsigned

This commit is contained in:
Willem Toorop 2016-03-30 11:57:01 -03:00
parent 79e44053d3
commit 8d05fd7c1b
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ default_eventloop_schedule(getdns_eventloop *loop,
if (!loop || !event)
return GETDNS_RETURN_INVALID_PARAMETER;
if (fd >= FD_SETSIZE) {
if (fd >= (int)FD_SETSIZE) {
DEBUG_SCHED( "ERROR: fd %d >= FD_SETSIZE: %d!\n"
, fd, FD_SETSIZE);
return GETDNS_RETURN_GENERIC_ERROR;