Browse Source

Minor compil warning (signed/unsigned compare) fix

pull/17/head
jean-pierre charras 8 years ago
parent
commit
5411b951ae
  1. 6
      common/tool/common_tools.cpp
  2. 2
      eeschema/dialogs/dialog_fields_editor_global.cpp

6
common/tool/common_tools.cpp

@ -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
}

2
eeschema/dialogs/dialog_fields_editor_global.cpp

@ -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;
}

Loading…
Cancel
Save