Browse Source

fix minor compil warnings

pull/7/merge
jean-pierre charras 8 years ago
parent
commit
917bda1c64
  1. 2
      pcbnew/class_board.cpp
  2. 2
      pcbnew/connectivity.cpp

2
pcbnew/class_board.cpp

@ -2747,7 +2747,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
++padCount[net];
}
for( i = 0; i < connAlgo->NetCount(); ++i )
for( i = 0; i < (unsigned)connAlgo->NetCount(); ++i )
{
// First condition: only one pad in the net
if( padCount[i] == 1 )

2
pcbnew/connectivity.cpp

@ -568,7 +568,7 @@ const std::vector<BOARD_CONNECTED_ITEM*> CONNECTIVITY_DATA::GetConnectedItems(
RN_NET* CONNECTIVITY_DATA::GetRatsnestForNet( int aNet )
{
if ( aNet < 0 || aNet >= m_nets.size() )
if ( aNet < 0 || aNet >= (int)m_nets.size() )
{
return nullptr;
}

Loading…
Cancel
Save