Kaydet (Commit) c06ec2fd authored tarafından David Tardon's avatar David Tardon

WaE: comparison between signed and unsigned integer expressions

üst 5e259549
......@@ -649,7 +649,7 @@ oslSocketAddr SAL_CALL osl_createInetSocketAddr (
rtl_uString *strDottedAddr,
sal_Int32 Port)
{
DWORD Addr;
sal_uInt32 Addr;
rtl_String *pDottedAddr=NULL;
rtl_uString2String(
......@@ -660,7 +660,7 @@ oslSocketAddr SAL_CALL osl_createInetSocketAddr (
rtl_string_release (pDottedAddr);
oslSocketAddr pAddr = 0;
if(Addr != -1)
if(Addr != OSL_INADDR_NONE)
{
pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, htons( (sal_uInt16)Port), Addr );
}
......@@ -1412,7 +1412,7 @@ oslSocket SAL_CALL osl_acceptConnectionOnSocket (
Connection= accept(pSocket->m_Socket, &Addr, &AddrLen);
OSL_ASSERT(AddrLen == sizeof(struct sockaddr));
if(Connection != OSL_SOCKET_ERROR)
if(Connection != static_cast<SOCKET>(OSL_SOCKET_ERROR))
*ppAddr= __osl_createSocketAddrFromSystem(&Addr);
else
*ppAddr = NULL;
......@@ -1424,7 +1424,7 @@ oslSocket SAL_CALL osl_acceptConnectionOnSocket (
}
/* accept failed? */
if(Connection == OSL_SOCKET_ERROR)
if(Connection == static_cast<SOCKET>(OSL_SOCKET_ERROR))
return ((oslSocket)NULL);
/* alloc memory */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment