diff --git a/pcbnew/legacy_plugin.h b/pcbnew/legacy_plugin.h index 1e0ebd315d..3aae932510 100644 --- a/pcbnew/legacy_plugin.h +++ b/pcbnew/legacy_plugin.h @@ -143,7 +143,7 @@ protected: ///> otherwise returns unchanged net code inline int getNetCode( int aNetCode ) { - if( aNetCode < (int) m_netCodes.size() ) + if( (unsigned int) aNetCode < m_netCodes.size() ) return m_netCodes[aNetCode]; return aNetCode;