diff --git a/pcbnew/class_board.cpp b/pcbnew/class_board.cpp index 350bba5709..0091e6def9 100644 --- a/pcbnew/class_board.cpp +++ b/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 ) diff --git a/pcbnew/connectivity.cpp b/pcbnew/connectivity.cpp index aa093179d2..750f84ffe6 100644 --- a/pcbnew/connectivity.cpp +++ b/pcbnew/connectivity.cpp @@ -568,7 +568,7 @@ const std::vector 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; }