diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index 8fbe1076ed..29e0641216 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -522,8 +522,8 @@ void SCH_COMPONENT::SetTimeStamp( long aNewTimeStamp ) { wxString string_timestamp, string_oldtimestamp; - string_timestamp.Printf( wxT( "%8.8X" ), aNewTimeStamp ); - string_oldtimestamp.Printf( wxT( "%8.8X" ), m_TimeStamp ); + string_timestamp.Printf( wxT( "%08lX" ), aNewTimeStamp ); + string_oldtimestamp.Printf( wxT( "%08lX" ), m_TimeStamp ); EDA_ITEM::SetTimeStamp( aNewTimeStamp ); for( unsigned ii = 0; ii < m_PathsAndReferences.GetCount(); ii++ ) diff --git a/pcbnew/class_track.cpp b/pcbnew/class_track.cpp index 1365d0e98c..743a9f2f19 100644 --- a/pcbnew/class_track.cpp +++ b/pcbnew/class_track.cpp @@ -164,7 +164,7 @@ wxString SEGZONE::GetSelectMenuText() const NETINFO_ITEM* net; BOARD* board = GetBoard(); - text << _( "Zone" ) << wxT( " " ) << wxString::Format( wxT( "(%8.8X)" ), m_TimeStamp ); + text << _( "Zone" ) << wxT( " " ) << wxString::Format( wxT( "(%08lX)" ), m_TimeStamp ); if( board ) { diff --git a/pcbnew/class_zone.cpp b/pcbnew/class_zone.cpp index 069bddfaef..3db2535d83 100644 --- a/pcbnew/class_zone.cpp +++ b/pcbnew/class_zone.cpp @@ -697,7 +697,7 @@ void ZONE_CONTAINER::DisplayInfo( EDA_DRAW_FRAME* frame ) msg = board->GetLayerName( m_Layer ); frame->AppendMsgPanel( _( "Layer" ), msg, BROWN ); - msg.Printf( wxT( "%d" ), m_Poly->corner.size() ); + msg.Printf( wxT( "%d" ), (int) m_Poly->corner.size() ); frame->AppendMsgPanel( _( "Corners" ), msg, BLUE ); if( m_FillMode ) @@ -708,12 +708,12 @@ void ZONE_CONTAINER::DisplayInfo( EDA_DRAW_FRAME* frame ) frame->AppendMsgPanel( _( "Fill mode" ), msg, BROWN ); // Useful for statistics : - msg.Printf( wxT( "%d" ), m_Poly->m_HatchLines.size() ); + msg.Printf( wxT( "%d" ), (int) m_Poly->m_HatchLines.size() ); frame->AppendMsgPanel( _( "Hatch lines" ), msg, BLUE ); if( m_FilledPolysList.size() ) { - msg.Printf( wxT( "%d" ), m_FilledPolysList.size() ); + msg.Printf( wxT( "%d" ), (int) m_FilledPolysList.size() ); frame->AppendMsgPanel( _( "Corners in DrawList" ), msg, BLUE ); } } @@ -897,7 +897,7 @@ wxString ZONE_CONTAINER::GetSelectMenuText() const text << wxT( " " ) << _( "(Cutout)" ); text << wxT( " " ); - text << wxString::Format( wxT( "(%8.8X)" ), m_TimeStamp ); + text << wxString::Format( wxT( "(%08lX)" ), m_TimeStamp ); if ( !IsOnCopperLayer() ) { diff --git a/pcbnew/zones_test_and_combine_areas.cpp b/pcbnew/zones_test_and_combine_areas.cpp index 670ac19817..fb6d206d08 100644 --- a/pcbnew/zones_test_and_combine_areas.cpp +++ b/pcbnew/zones_test_and_combine_areas.cpp @@ -281,7 +281,7 @@ int BOARD::ClipAreaPolygon( PICKED_ITEMS_LIST * aNewZonesList, if( bMessageBoxArc && bDontShowSelfIntersectionArcsWarning == false ) { wxString str; - str.Printf( wxT( "Area %8.8X of net \"%s\" has arcs intersecting other sides.\n" ), + str.Printf( wxT( "Area %08lX of net \"%s\" has arcs intersecting other sides.\n" ), aCurrArea->GetTimeStamp(), GetChars( aCurrArea->m_Netname ) ); str += wxT( "This may cause problems with other editing operations,\n" ); str += wxT( "such as adding cutouts. It can't be fixed automatically.\n" ); @@ -304,7 +304,7 @@ int BOARD::ClipAreaPolygon( PICKED_ITEMS_LIST * aNewZonesList, if( bMessageBoxInt && bDontShowSelfIntersectionWarning == false ) { wxString str; - str.Printf( wxT( "Area %8.8X of net \"%s\" is self-intersecting and will be clipped.\n" ), + str.Printf( wxT( "Area %08lX of net \"%s\" is self-intersecting and will be clipped.\n" ), aCurrArea->GetTimeStamp(), GetChars( aCurrArea->m_Netname ) ); str += wxT( "This may result in splitting the area.\n" ); str += wxT( "If the area is complex, this may take a few seconds." );