Fix minor compil warnings.

This commit is contained in:
jean-pierre charras 2018-09-16 15:47:19 +02:00
parent f16f0fc215
commit b70d0f43b6
3 changed files with 4 additions and 6 deletions

View File

@ -125,7 +125,7 @@ void FOOTPRINTS_LISTBOX::SetSelectedFootprint( const LIB_ID& aFPID )
GetChars( aFPID.GetLibNickname() ),
GetChars( aFPID.GetLibItemName() ) );
for( size_t i = 0; i < GetCount(); ++i )
for( int i = 0; i < GetCount(); ++i )
{
wxString candidate = m_footprintList.Item( i ).substr( 4 );

View File

@ -835,7 +835,7 @@ wxString SCH_REFERENCE_LIST::Shorthand( std::vector<SCH_REFERENCE> aList )
while( i + range < aList.size()
&& aList[ i + range ].GetRef() == ref
&& aList[ i + range ].m_NumRef == numRef + range )
&& aList[ i + range ].m_NumRef == int( numRef + range ) )
{
range++;
}

View File

@ -80,7 +80,7 @@ static int getModelTypeIdx( char aPrimitive )
{
const char prim = std::toupper( aPrimitive );
for( int i = 0; i < modelTypes.size(); ++i )
for( size_t i = 0; i < modelTypes.size(); ++i )
{
if( modelTypes[i].type == prim )
return i;
@ -174,9 +174,8 @@ bool DIALOG_SPICE_MODEL::TransferDataFromWindow()
return false;
int modelIdx = m_modelType->GetSelection();
wxASSERT( modelIdx < modelTypes.size() );
if( modelIdx > 0 && modelIdx < modelTypes.size() )
if( modelIdx > 0 && modelIdx < (int)modelTypes.size() )
m_fieldsTmp[SF_PRIMITIVE] = static_cast<char>( modelTypes[modelIdx].type );
m_fieldsTmp[SF_MODEL] = m_modelName->GetValue();
@ -185,7 +184,6 @@ bool DIALOG_SPICE_MODEL::TransferDataFromWindow()
m_fieldsTmp[SF_LIB_FILE] = m_modelLibrary->GetValue();
}
// Power source
else if( page == m_power )
{