Minor compil warning (signed/unsigned compare) fix

This commit is contained in:
jean-pierre charras 2018-06-12 20:15:04 +02:00
parent bc7bd107d9
commit 5411b951ae
2 changed files with 5 additions and 3 deletions

View File

@ -92,17 +92,19 @@ int COMMON_TOOLS::doZoomInOut( bool aDirection, bool aCenterOnCursor )
if( zoomList[idx] <= zoom )
break;
}
if( idx < 0 )
idx = 0; // if we ran off the end then peg to the end
}
else
{
for( idx = 0; idx < zoomList.size(); ++idx )
for( idx = 0; idx < (int)zoomList.size(); ++idx )
{
if( zoomList[idx] >= zoom )
break;
}
if( idx >= zoomList.size() )
if( idx >= (int)zoomList.size() )
idx = zoomList.size() - 1; // if we ran off the end then peg to the end
}

View File

@ -174,7 +174,7 @@ public:
std::vector<SCH_REFERENCE> GetRowReferences( int aRow )
{
wxCHECK( aRow < m_rows.size(), std::vector<SCH_REFERENCE>() );
wxCHECK( aRow < (int)m_rows.size(), std::vector<SCH_REFERENCE>() );
return m_rows[ aRow ].m_Refs;
}