Fix minor compil warnings

This commit is contained in:
jean-pierre charras 2017-07-30 14:24:21 +02:00
parent 75cda5021d
commit e10f0c729b
1 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ int WIDGET_NET_SELECTOR::GetSelectedNet()
bool WIDGET_NET_SELECTOR::IsUniqueNetSelected() const bool WIDGET_NET_SELECTOR::IsUniqueNetSelected() const
{ {
if( m_multiple && ( GetSelection() == ( GetCount() - 1 ) ) ) if( m_multiple && ( GetSelection() == ( (int)GetCount() - 1 ) ) )
return false; return false;
return true; return true;
@ -89,7 +89,7 @@ void WIDGET_NET_SELECTOR::SetBoard( BOARD* aBoard )
Append( wxT( "<no net>" )); Append( wxT( "<no net>" ));
for(int i = 1; i < netinfo.GetNetCount(); i++) for(unsigned i = 1; i < netinfo.GetNetCount(); i++)
{ {
NETINFO_ITEM *ni = netinfo.GetNetItem(i); NETINFO_ITEM *ni = netinfo.GetNetItem(i);
NET n; NET n;