WaE: comparison between signed and unsigned integer expressions
This commit is contained in:
parent
5e259549cb
commit
c06ec2fdc2
1 changed files with 4 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue