*) 64 bit size_t is not compatible with %u printf format control. use "%zu"

where the 'z' prefix is for size_t arguments.

*) minor beautification
This commit is contained in:
Dick Hollenbeck 2012-08-24 06:14:10 -05:00
parent b19cc14ef2
commit 3a07ab1f09
2 changed files with 11 additions and 11 deletions

View File

@ -412,7 +412,7 @@ void LIB_POLYLINE::DisplayInfo( EDA_DRAW_FRAME* aFrame )
wxString LIB_POLYLINE::GetSelectMenuText() const wxString LIB_POLYLINE::GetSelectMenuText() const
{ {
return wxString::Format( _( "Polyline at (%s, %s) with %u points" ), return wxString::Format( _( "Polyline at (%s, %s) with %zu points" ),
GetChars( CoordinateToString( m_PolyPoints[0].x ) ), GetChars( CoordinateToString( m_PolyPoints[0].x ) ),
GetChars( CoordinateToString( m_PolyPoints[0].y ) ), GetChars( CoordinateToString( m_PolyPoints[0].y ) ),
m_PolyPoints.size() ); m_PolyPoints.size() );

View File

@ -617,8 +617,8 @@ static void moveItem( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPositio
// Erase the current item at its current position. // Erase the current item at its current position.
if( aErase ) if( aErase )
item->Draw( aPanel, aDC, wxPoint( 0, 0 ), g_XorMode ); item->Draw( aPanel, aDC, wxPoint( 0, 0 ), g_XorMode );
#endif #endif
item->SetPosition( screen->GetCrossHairPosition() ); item->SetPosition( screen->GetCrossHairPosition() );
// Draw the item item at it's new position. // Draw the item item at it's new position.