From 2cf32b03206531223d847881d58b452b81d92b77 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 4 Sep 2008 09:31:18 +0000 Subject: fix a warning. I am on a warning zapping crusade today. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10380 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengines/socketengine_iocp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socketengines/socketengine_iocp.cpp') diff --git a/src/socketengines/socketengine_iocp.cpp b/src/socketengines/socketengine_iocp.cpp index 2a0c4d416..5c011deb8 100644 --- a/src/socketengines/socketengine_iocp.cpp +++ b/src/socketengines/socketengine_iocp.cpp @@ -291,7 +291,7 @@ int IOCPEngine::DispatchEvents() while (GetQueuedCompletionStatus(m_completionPort, &len, &intfd, &overlap, 1000)) { - if (intfd < 0 || intfd > MAX_DESCRIPTORS) + if (intfd > (unsigned long)MAX_DESCRIPTORS) continue; // woot, we got an event on a socket :P -- cgit v1.2.3