]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed gcc 3.3 compilation warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jul 2003 19:40:33 +0000 (19:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jul 2003 19:40:33 +0000 (19:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/gsocket.c
src/mac/gsocket.c
src/mac/morefilex/MoreFilesX.c

index f3985aee92a061238800b748a643107df5815295..45275d917656426d1980e81b562c60dc9d53aea3 100644 (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);
index f3985aee92a061238800b748a643107df5815295..45275d917656426d1980e81b562c60dc9d53aea3 100644 (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);
index 617f49276826a763ab9edb99decae46b1cb52a51..d380e0d11c65350838dbf5a8eeb5d1d6076df19b 100644 (file)
@@ -2648,7 +2648,7 @@ GetTempBuffer(
                
                buffReqSize = MaxBlock() & 0xfffff000;
                
-               if ( buffReqSize > freeMemory )
+               if ( (long)buffReqSize > freeMemory )
                {
                        buffReqSize = freeMemory;
                }