Cast size_ts used in format strings to ints instead as there isn't actually a portable way to format them.

Originally committed to SVN as r5944.
This commit is contained in:
Thomas Goyne 2011-11-30 02:44:27 +00:00
parent f9e8175cb8
commit adb5963fbd
2 changed files with 2 additions and 5 deletions

View file

@ -41,8 +41,6 @@
#include "video_context.h"
#ifndef AGI_PRE
#include <inttypes.h>
#include <wx/checkbox.h>
#include <wx/msgdlg.h>
#include <wx/sizer.h>
@ -207,7 +205,7 @@ bool DialogTranslation::PrevBlock() {
}
void DialogTranslation::UpdateDisplay() {
line_number_display->SetLabel(wxString::Format(_("Current line: %" PRIu64 "/%" PRIu64), line_number, line_count));
line_number_display->SetLabel(wxString::Format(_("Current line: %d/%d"), (int)line_number, (int)line_count));
original_text->SetReadOnly(false);
original_text->ClearAll();

View file

@ -38,7 +38,6 @@
#ifndef AGI_PRE
#include <deque>
#include <inttypes.h>
#include <sstream>
#include <vector>
@ -74,7 +73,7 @@ class MruMenu : public wxMenu {
for (size_t i = GetMenuItemCount(); i < new_size; ++i) {
if (i >= items.size()) {
items.push_back(new wxMenuItem(this, MENU_ID_BASE + cmds->size(), "_"));
cmds->push_back(cmd::get(STD_STR(wxString::Format("recent/%s/%" PRIu64, lagi_wxString(type).Lower(), i))));
cmds->push_back(cmd::get(STD_STR(wxString::Format("recent/%s/%d", lagi_wxString(type).Lower(), (int)i))));
}
Append(items[i]);
}