summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/socketengines/socketengine_iocp.cpp2
1 files changed, 1 insertions, 1 deletions
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