]> git.saurik.com Git - wxWidgets.git/commitdiff
fix unsigned/signed warnings
authorRyan Norton <wxprojects@comcast.net>
Thu, 11 Nov 2004 08:30:04 +0000 (08:30 +0000)
committerRyan Norton <wxprojects@comcast.net>
Thu, 11 Nov 2004 08:30:04 +0000 (08:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/listbox.cpp

index ebb9ee5ff91b7fc4de0a61819436327fc21523c4..975813fb26e9cc3c6f4f1f74ce3b0061974f103c 100644 (file)
@@ -654,7 +654,7 @@ void wxListBox::MacDelete( int n )
 
     UInt32 id = m_noItems+1 ;
     verify_noerr( m_peer->RemoveItems( kDataBrowserNoItem , 1 , (UInt32*) &id , kDataBrowserItemNoProperty ) ) ;
 
     UInt32 id = m_noItems+1 ;
     verify_noerr( m_peer->RemoveItems( kDataBrowserNoItem , 1 , (UInt32*) &id , kDataBrowserItemNoProperty ) ) ;
-    for ( int i = 0 ; i < selectionBefore.GetCount() ; ++i )
+    for ( size_t i = 0 ; i < selectionBefore.GetCount() ; ++i )
     {
         int current = selectionBefore[i] ;
         if ( current == n )
     {
         int current = selectionBefore[i] ;
         if ( current == n )
@@ -764,7 +764,7 @@ int wxListBox::MacGetSelections( wxArrayInt& aSelections ) const
     m_peer->GetSelectionAnchor( &first , &last ) ;
     if ( first != kDataBrowserNoItem )
     {
     m_peer->GetSelectionAnchor( &first , &last ) ;
     if ( first != kDataBrowserNoItem )
     {
-        for ( int i = first ; i <= last ; ++i )
+        for ( size_t i = first ; i <= last ; ++i )
         {
             if ( m_peer->IsItemSelected( i ) )
             {
         {
             if ( m_peer->IsItemSelected( i ) )
             {