Fix a bunch of compiler warnings

This commit is contained in:
qu1ck
2023-04-11 17:01:30 +00:00
committed by Mark Roszko
parent 6fb30398ca
commit 0c049eccc7
36 changed files with 77 additions and 112 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ int EDA_PATTERN_MATCH_RELATIONAL::FindOne( const wxString& aCandidate ) const
wxString val = m_regex_description.GetMatch( aCandidate, 2 );
wxString unit = m_regex_description.GetMatch( aCandidate, 3 );
int istart = ( start > std::numeric_limits<int>::max() ) ? std::numeric_limits<int>::max() : start;
int istart = static_cast<int>( CLAMPED_VAL_INT_MAX( start ) );
if( key.Lower() != m_key )
return EDA_PATTERN_NOT_FOUND;