Cast size_ts passed to wxString::Format to ints

Originally committed to SVN as r6822.
This commit is contained in:
Thomas Goyne 2012-05-18 05:03:16 +00:00
parent 21100038f5
commit 4f832e4b82

View file

@ -262,9 +262,9 @@ void DialogAutomation::OnInfo(wxCommandEvent &)
info.push_back(wxString::Format(
_("Total scripts loaded: %d\nGlobal scripts loaded: %d\nLocal scripts loaded: %d\n"),
local_manager->GetScripts().size() + global_manager->GetScripts().size(),
global_manager->GetScripts().size(),
local_manager->GetScripts().size()));
(int)local_manager->GetScripts().size() + (int)global_manager->GetScripts().size(),
(int)global_manager->GetScripts().size(),
(int)local_manager->GetScripts().size()));
info.push_back(_("Scripting engines installed:"));
transform(Automation4::ScriptFactory::GetFactories(), append_info, fac_to_str);