diff --git a/eeschema/class_libentry.cpp b/eeschema/class_libentry.cpp index 70fc90c1bc..9ffe3f3e83 100644 --- a/eeschema/class_libentry.cpp +++ b/eeschema/class_libentry.cpp @@ -1697,7 +1697,7 @@ LIB_ALIAS* LIB_PART::RemoveAlias( LIB_ALIAS* aAlias ) bool rename = aAlias->IsRoot(); wxLogTrace( traceSchLibMem, - wxT( "%s: part:'%s', alias:'%s', alias count %llu, reference count %d." ), + wxT( "%s: part:'%s', alias:'%s', alias count %llu, reference count %ld." ), GetChars( wxString::FromAscii( __WXFUNCTION__ ) ), GetChars( m_name ), GetChars( aAlias->GetName() ), diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index bf9dc92808..90a494f8b3 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -414,7 +414,7 @@ wxString SCH_COMPONENT::GetPath( const SCH_SHEET_PATH* sheet ) const wxString str; - str.Printf( wxT( "%8.8lX" ), m_TimeStamp ); + str.Printf( wxT( "%8.8lX" ), (long unsigned) m_TimeStamp ); return sheet->Path() + str; } @@ -547,8 +547,8 @@ void SCH_COMPONENT::SetTimeStamp( time_t aNewTimeStamp ) { wxString string_timestamp, string_oldtimestamp; - string_timestamp.Printf( wxT( "%08lX" ), aNewTimeStamp ); - string_oldtimestamp.Printf( wxT( "%08lX" ), m_TimeStamp ); + string_timestamp.Printf( wxT( "%08lX" ), (long unsigned) aNewTimeStamp ); + string_oldtimestamp.Printf( wxT( "%08lX" ), (long unsigned) m_TimeStamp ); EDA_ITEM::SetTimeStamp( aNewTimeStamp ); for( unsigned ii = 0; ii < m_PathsAndReferences.GetCount(); ii++ )