Fix overload compile warning

This commit is contained in:
Seth Hillbrand 2018-06-07 21:35:10 -07:00
parent 7558c71aca
commit 72238e260a
1 changed files with 2 additions and 2 deletions

View File

@ -731,7 +731,7 @@ bool SCH_COMPONENT::IsReferenceStringValid( const wxString& aReferenceString )
bool ok = true;
// Try to unannotate this reference
while( !text.IsEmpty() && ( text.Last() == '?' || isdigit( text.Last() ) ) )
while( !text.IsEmpty() && ( text.Last() == '?' || std::isdigit( text.Last().GetValue() ) ) )
text.RemoveLast();
if( text.IsEmpty() )
@ -794,7 +794,7 @@ void SCH_COMPONENT::SetRef( const SCH_SHEET_PATH* sheet, const wxString& ref )
if( IsReferenceStringValid( prefix ) )
{
while( prefix.Last() == '?' || isdigit( prefix.Last() ) )
while( prefix.Last() == '?' || std::isdigit( prefix.Last().GetValue() ) )
prefix.RemoveLast();
}
else