From 917bda1c64e9954545c7cabc8455e50aa09d470f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 1 Jul 2017 10:40:18 +0200 Subject: [PATCH] fix minor compil warnings --- pcbnew/class_board.cpp | 2 +- pcbnew/connectivity.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }