From c06ec2fdc21d4794535fb4d2358f65575ee9f2b7 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 7 Mar 2012 13:32:46 +0100 Subject: [PATCH] WaE: comparison between signed and unsigned integer expressions --- sal/osl/w32/socket.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sal/osl/w32/socket.cxx b/sal/osl/w32/socket.cxx index fa6c34f5a8c5..4f150d0e6486 100644 --- a/sal/osl/w32/socket.cxx +++ b/sal/osl/w32/socket.cxx @@ -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(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(OSL_SOCKET_ERROR)) return ((oslSocket)NULL); /* alloc memory */