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:
Vadim Zeitlin
2003-07-09 19:40:33 +00:00
parent 3a531aebab
commit f85cfb32fa
3 changed files with 5 additions and 5 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -2648,7 +2648,7 @@ GetTempBuffer(
buffReqSize = MaxBlock() & 0xfffff000;
if ( buffReqSize > freeMemory )
if ( (long)buffReqSize > freeMemory )
{
buffReqSize = freeMemory;
}