From 4ed586ddfe32f245ba42b774a9c163978bc4f762 Mon Sep 17 00:00:00 2001 From: Twan van Laarhoven Date: Fri, 22 May 2020 19:45:18 +0200 Subject: [PATCH] Fix crash in 64 bit build, because size_t can't be used with a %d format string --- src/gui/card_select_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/card_select_window.cpp b/src/gui/card_select_window.cpp index 909e82ac..997a68a0 100644 --- a/src/gui/card_select_window.cpp +++ b/src/gui/card_select_window.cpp @@ -106,7 +106,7 @@ void ExportWindowBase::update() { if (select_cards) { select_cards->Enable(choice.type == EXPORT_SEL_CUSTOM); } - card_count->SetLabel(_LABEL_1_("selected card count", String::Format(_("%d"),cards->size()))); + card_count->SetLabel(_LABEL_1_("selected card count", std::to_string(cards->size()))); wxWindow* ok_btn = FindWindow(wxID_OK); if (ok_btn) ok_btn->Enable(!cards->empty()); }