Fix minor compil warnings

This commit is contained in:
jean-pierre charras 2019-08-18 09:13:55 +02:00
parent 3fefe01d2e
commit 8f583008e0
2 changed files with 3 additions and 3 deletions

View File

@ -406,7 +406,7 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList()
bool matched = matcher.Find( search.Lower(), matches, position );
if( !matched && term.IsNumber() )
matched = wxAtoi( term ) == footprint->GetPadCount();
matched = ( wxAtoi( term ) == (int)footprint->GetPadCount() );
if( !matched )
excludes.insert( footprint->GetFootprintName() );
@ -513,7 +513,7 @@ void FOOTPRINT_VIEWER_FRAME::selectNext( wxListBox* aListBox )
{
int next = aListBox->GetSelection() + 1;
if( next < aListBox->GetCount() )
if( next < (int)aListBox->GetCount() )
{
aListBox->SetSelection( next );

View File

@ -118,7 +118,7 @@ private:
void OnLibFilter( wxCommandEvent& aEvent );
void OnFPFilter( wxCommandEvent& aEvent );
void OnCharHook( wxKeyEvent& aEvent );
void OnCharHook( wxKeyEvent& aEvent ) override;
void selectPrev( wxListBox* aListBox );
void selectNext( wxListBox* aListBox );