From 5e2354e0c5277e4f2e88c736e68636fedb5d55f5 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Mon, 11 Nov 2024 09:37:04 +0000 Subject: [PATCH] Correct printf format specifiers --------- Co-authored-by: Dave Page --- App.cpp | 4 ++-- IntroductionPage.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/App.cpp b/App.cpp index b42862e..40031aa 100644 --- a/App.cpp +++ b/App.cpp @@ -460,10 +460,10 @@ bool App::Download(const wxString& downloadPath, const Mirror *mirror) isDownloadInProgress = true; if (kbFileSize > kbDownloaded) - msg = wxString::Format(_("Downloaded %d KB of %d KB (%d KB/Sec)"), kbDownloaded, kbFileSize, speed); + msg = wxString::Format(_("Downloaded %d KB of %d KB (%ld KB/Sec)"), kbDownloaded, kbFileSize, speed); else { - msg = wxString::Format(_("Downloaded %6.0lf KB (%d KB/Sec)"), kbDownloaded, speed); + msg = wxString::Format(_("Downloaded %6.0lf KB (%ld KB/Sec)"), kbDownloaded, speed); break; } diff --git a/IntroductionPage.cpp b/IntroductionPage.cpp index ad7c5ee..6728a25 100644 --- a/IntroductionPage.cpp +++ b/IntroductionPage.cpp @@ -304,7 +304,7 @@ bool IntroductionPage::FindPgServers() } // Build the user description - temp.Printf(_("%s on port %d"), data->description.c_str(), data->port); + temp.Printf(_("%s on port %ld"), data->description.c_str(), data->port); // Add the item, if it looks sane if (data->port != 0 && data->dataDirectory != wxEmptyString && data->superuserName != wxEmptyString)