fixed gcc 3.3 compilation warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1071,7 +1071,7 @@ int _GSocket_Recv_Stream(GSocket *socket, char *buffer, int size)
|
||||
OTByteCount sz = 0 ;
|
||||
|
||||
OTCountDataBytes( socket->m_endpoint , &sz ) ;
|
||||
if ( size > sz )
|
||||
if ( size > (int)sz )
|
||||
size = sz ;
|
||||
res = OTRcv( socket->m_endpoint , buffer , size , &flags ) ;
|
||||
if ( res < 0 )
|
||||
@@ -1344,7 +1344,7 @@ service_entry gServices[] =
|
||||
GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port,
|
||||
const char *protocol)
|
||||
{
|
||||
int i ;
|
||||
size_t i ;
|
||||
|
||||
assert(address != NULL);
|
||||
CHECK_ADDRESS(address, INET, GSOCK_INVADDR);
|
||||
|
@@ -1071,7 +1071,7 @@ int _GSocket_Recv_Stream(GSocket *socket, char *buffer, int size)
|
||||
OTByteCount sz = 0 ;
|
||||
|
||||
OTCountDataBytes( socket->m_endpoint , &sz ) ;
|
||||
if ( size > sz )
|
||||
if ( size > (int)sz )
|
||||
size = sz ;
|
||||
res = OTRcv( socket->m_endpoint , buffer , size , &flags ) ;
|
||||
if ( res < 0 )
|
||||
@@ -1344,7 +1344,7 @@ service_entry gServices[] =
|
||||
GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port,
|
||||
const char *protocol)
|
||||
{
|
||||
int i ;
|
||||
size_t i ;
|
||||
|
||||
assert(address != NULL);
|
||||
CHECK_ADDRESS(address, INET, GSOCK_INVADDR);
|
||||
|
@@ -2648,7 +2648,7 @@ GetTempBuffer(
|
||||
|
||||
buffReqSize = MaxBlock() & 0xfffff000;
|
||||
|
||||
if ( buffReqSize > freeMemory )
|
||||
if ( (long)buffReqSize > freeMemory )
|
||||
{
|
||||
buffReqSize = freeMemory;
|
||||
}
|
||||
|
Reference in New Issue
Block a user