From 44a6a61ff909d559c436bbfe8f4adfab9a082889 Mon Sep 17 00:00:00 2001 From: John Beard Date: Fri, 22 Nov 2019 11:43:27 +0800 Subject: [PATCH] Gerbview: fix formatting assert In GERBVIEW_FRAME::loadListOfGerberAndDrillFiles, the variables ii and aFilenameList.GetCount() are unsigned and size_t, respectively. This means the format string must be %u and %lu, respectively. --- gerbview/files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gerbview/files.cpp b/gerbview/files.cpp index 33a4a16d45..19cea8b5f2 100644 --- a/gerbview/files.cpp +++ b/gerbview/files.cpp @@ -298,12 +298,12 @@ bool GERBVIEW_FRAME::loadListOfGerberAndDrillFiles( const wxString& aPath, progress = std::make_unique( this, _( "Loading Gerber files..." ), 1, false ); progress->SetMaxProgress( aFilenameList.GetCount() - 1 ); - progress->Report( wxString::Format( _("Loading %d/%d %s" ), ii+1, + progress->Report( wxString::Format( _("Loading %u/%lu %s" ), ii+1, aFilenameList.GetCount(), m_lastFileName ) ); } else if( progress ) { - progress->Report( wxString::Format( _("Loading %d/%d %s" ), ii+1, + progress->Report( wxString::Format( _("Loading %u/%lu %s" ), ii+1, aFilenameList.GetCount(), m_lastFileName ) ); progress->KeepRefreshing(); }