Fix minor compil warnings (signed/unsigned comparison)

This commit is contained in:
jean-pierre charras 2019-08-10 09:18:19 +02:00
parent 17b5a3750b
commit 3796b2fe7f
2 changed files with 3 additions and 3 deletions

View File

@ -406,7 +406,7 @@ void SCH_PRINTOUT::PrintPage( SCH_SCREEN* aScreen )
wxAffineMatrix2D matrix = dc->GetTransformMatrix();
// Check for portrait/landscape mismatch:
if( fitRect.width > fitRect.height != pageSizeIU.x > pageSizeIU.y )
if( ( fitRect.width > fitRect.height ) != ( pageSizeIU.x > pageSizeIU.y ) )
{
matrix.Rotate( M_PI_2 );
xoffset = ( fitRect.height - pageSizeIU.x ) / 2;

View File

@ -289,7 +289,7 @@ int TestMultiunitFootprints( SCH_SHEET_LIST& aSheetList )
wxString fp;
wxString unitName;
for( int i = 0; i < component.second.GetCount(); ++i )
for( unsigned i = 0; i < component.second.GetCount(); ++i )
{
SCH_COMPONENT* cmp = refList.GetItem( i ).GetComp();
SCH_SHEET_PATH sheetPath = refList.GetItem( i ).GetSheetPath();
@ -303,7 +303,7 @@ int TestMultiunitFootprints( SCH_SHEET_LIST& aSheetList )
}
}
for( int i = 0; i < component.second.GetCount(); ++i )
for( unsigned i = 0; i < component.second.GetCount(); ++i )
{
SCH_REFERENCE& ref = refList.GetItem( i );
SCH_COMPONENT* unit = ref.GetComp();