git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21805
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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 )
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);
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 )
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);
buffReqSize = MaxBlock() & 0xfffff000;
- if ( buffReqSize > freeMemory )
+ if ( (long)buffReqSize > freeMemory )
{
buffReqSize = freeMemory;
}