Fix minor compil warnings (signed/unsigned comparison)
This commit is contained in:
parent
17b5a3750b
commit
3796b2fe7f
|
@ -406,7 +406,7 @@ void SCH_PRINTOUT::PrintPage( SCH_SCREEN* aScreen )
|
||||||
wxAffineMatrix2D matrix = dc->GetTransformMatrix();
|
wxAffineMatrix2D matrix = dc->GetTransformMatrix();
|
||||||
|
|
||||||
// Check for portrait/landscape mismatch:
|
// 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 );
|
matrix.Rotate( M_PI_2 );
|
||||||
xoffset = ( fitRect.height - pageSizeIU.x ) / 2;
|
xoffset = ( fitRect.height - pageSizeIU.x ) / 2;
|
||||||
|
|
|
@ -289,7 +289,7 @@ int TestMultiunitFootprints( SCH_SHEET_LIST& aSheetList )
|
||||||
wxString fp;
|
wxString fp;
|
||||||
wxString unitName;
|
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_COMPONENT* cmp = refList.GetItem( i ).GetComp();
|
||||||
SCH_SHEET_PATH sheetPath = refList.GetItem( i ).GetSheetPath();
|
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_REFERENCE& ref = refList.GetItem( i );
|
||||||
SCH_COMPONENT* unit = ref.GetComp();
|
SCH_COMPONENT* unit = ref.GetComp();
|
||||||
|
|
Loading…
Reference in New Issue