From 0b9cd93cad6513d2f7b08b9b2f1eea2bac5d902a Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Thu, 11 Nov 2004 08:30:04 +0000 Subject: [PATCH] fix unsigned/signed warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/listbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index ebb9ee5ff9..975813fb26 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -654,7 +654,7 @@ void wxListBox::MacDelete( int n ) 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 ) @@ -764,7 +764,7 @@ int wxListBox::MacGetSelections( wxArrayInt& aSelections ) const 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 ) ) {