Fix minor compil warnings.

This commit is contained in:
jean-pierre charras 2018-11-18 10:08:53 +01:00
parent 0ef7aeb274
commit 2fdf13ab79
3 changed files with 8 additions and 8 deletions

View File

@ -530,14 +530,14 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
int index = m_gridSelectBox->GetSelection(); int index = m_gridSelectBox->GetSelection();
wxASSERT( index != wxNOT_FOUND ); wxASSERT( index != wxNOT_FOUND );
if( index == m_gridSelectBox->GetCount() - 2 ) if( index == int( m_gridSelectBox->GetCount() - 2 ) )
{ {
// this is the separator // this is the separator
wxUpdateUIEvent dummy; wxUpdateUIEvent dummy;
OnUpdateSelectGrid( dummy ); OnUpdateSelectGrid( dummy );
return; return;
} }
else if( index == m_gridSelectBox->GetCount() - 1 ) else if( index == int( m_gridSelectBox->GetCount() - 1 ) )
{ {
wxUpdateUIEvent dummy; wxUpdateUIEvent dummy;
OnUpdateSelectGrid( dummy ); OnUpdateSelectGrid( dummy );

View File

@ -531,14 +531,14 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
int index = m_gridSelectBox->GetSelection(); int index = m_gridSelectBox->GetSelection();
wxASSERT( index != wxNOT_FOUND ); wxASSERT( index != wxNOT_FOUND );
if( index == m_gridSelectBox->GetCount() - 2 ) if( index == int( m_gridSelectBox->GetCount() - 2 ) )
{ {
// this is the separator // this is the separator
wxUpdateUIEvent dummy; wxUpdateUIEvent dummy;
OnUpdateSelectGrid( dummy ); OnUpdateSelectGrid( dummy );
return; return;
} }
else if( index == m_gridSelectBox->GetCount() - 1 ) else if( index == int( m_gridSelectBox->GetCount() - 1 ) )
{ {
wxUpdateUIEvent dummy; wxUpdateUIEvent dummy;
OnUpdateSelectGrid( dummy ); OnUpdateSelectGrid( dummy );

View File

@ -119,12 +119,12 @@ void PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event( wxCommandEvent& event )
case ID_AUX_TOOLBAR_PCB_TRACK_WIDTH: case ID_AUX_TOOLBAR_PCB_TRACK_WIDTH:
ii = m_SelTrackWidthBox->GetSelection(); ii = m_SelTrackWidthBox->GetSelection();
if( ii == m_SelViaSizeBox->GetCount() - 2 ) if( ii == int( m_SelViaSizeBox->GetCount() - 2 ) )
{ {
// this is the separator // this is the separator
m_SelTrackWidthBox->SetSelection( GetDesignSettings().GetTrackWidthIndex() ); m_SelTrackWidthBox->SetSelection( GetDesignSettings().GetTrackWidthIndex() );
} }
else if( ii == m_SelTrackWidthBox->GetCount() - 1 ) else if( ii == int( m_SelTrackWidthBox->GetCount() - 1 ) )
{ {
m_SelTrackWidthBox->SetSelection( GetDesignSettings().GetTrackWidthIndex() ); m_SelTrackWidthBox->SetSelection( GetDesignSettings().GetTrackWidthIndex() );
DoShowBoardSetupDialog( _( "Tracks & Vias" ) ); DoShowBoardSetupDialog( _( "Tracks & Vias" ) );
@ -137,12 +137,12 @@ void PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event( wxCommandEvent& event )
case ID_AUX_TOOLBAR_PCB_VIA_SIZE: case ID_AUX_TOOLBAR_PCB_VIA_SIZE:
ii = m_SelViaSizeBox->GetSelection(); ii = m_SelViaSizeBox->GetSelection();
if( ii == m_SelViaSizeBox->GetCount() - 2 ) if( ii == int( m_SelViaSizeBox->GetCount() - 2 ) )
{ {
// this is the separator // this is the separator
m_SelViaSizeBox->SetSelection( GetDesignSettings().GetViaSizeIndex() ); m_SelViaSizeBox->SetSelection( GetDesignSettings().GetViaSizeIndex() );
} }
else if( ii == m_SelViaSizeBox->GetCount() - 1 ) else if( ii == int( m_SelViaSizeBox->GetCount() - 1 ) )
{ {
m_SelViaSizeBox->SetSelection( GetDesignSettings().GetViaSizeIndex() ); m_SelViaSizeBox->SetSelection( GetDesignSettings().GetViaSizeIndex() );
DoShowBoardSetupDialog( _( "Tracks & Vias" ) ); DoShowBoardSetupDialog( _( "Tracks & Vias" ) );