From 67a85221d5bac4b363d3f8d0263a9b8848ba0adb Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 25 Mar 2014 17:31:03 -0700 Subject: WINDOWS IS SUFFERING --- node/SocketManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node/SocketManager.cpp') diff --git a/node/SocketManager.cpp b/node/SocketManager.cpp index cd7c646f..2f6eb4fb 100644 --- a/node/SocketManager.cpp +++ b/node/SocketManager.cpp @@ -485,7 +485,7 @@ void SocketManager::poll(unsigned long timeout) FD_SET(sockfd,&_readfds); _fdSetLock.unlock(); if ((int)sockfd > (int)_nfds) - _nfds = sockfd; + _nfds = (int)sockfd; } catch ( ... ) { CLOSE_SOCKET(sockfd); } @@ -518,7 +518,7 @@ void SocketManager::poll(unsigned long timeout) FD_SET(sockfd,&_readfds); _fdSetLock.unlock(); if ((int)sockfd > (int)_nfds) - _nfds = sockfd; + _nfds = (int)sockfd; } catch ( ... ) { CLOSE_SOCKET(sockfd); } @@ -662,7 +662,7 @@ void SocketManager::_updateNfds() if (s->second->_sock > nfds) nfds = s->second->_sock; } - _nfds = nfds; + _nfds = (int)nfds; } } // namespace ZeroTier -- cgit v1.2.3