summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rw-r--r--cpp/src/Ice/UdpTransceiver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp
index 855527b144d..b1aa39ddd96 100644
--- a/cpp/src/Ice/UdpTransceiver.cpp
+++ b/cpp/src/Ice/UdpTransceiver.cpp
@@ -545,7 +545,7 @@ IceInternal::UdpTransceiver::finishWrite(Buffer& buf)
return;
}
- if(_write.count == SOCKET_ERROR)
+ if(static_cast<int>(_write.count) == SOCKET_ERROR)
{
#ifndef ICE_OS_WINRT
WSASetLastError(_write.error);
@@ -675,7 +675,7 @@ IceInternal::UdpTransceiver::finishRead(Buffer& buf)
checkErrorCode(__FILE__, __LINE__, ex->HResult);
}
#else
- if(_read.count == SOCKET_ERROR)
+ if(static_cast<int>(_read.count) == SOCKET_ERROR)
{
WSASetLastError(_read.error);