Skip to content

Commit

Permalink
Correct printf format specifiers
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Dave Page <[email protected]>
  • Loading branch information
dpage-edb and dpage authored Nov 11, 2024
1 parent c3dba08 commit 5e2354e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion IntroductionPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e2354e

Please sign in to comment.