From fdf72544fb1f82529e8a14dd4249e36560c21d72 Mon Sep 17 00:00:00 2001 From: William JCM Date: Wed, 30 Sep 2020 16:26:15 +0200 Subject: [PATCH] Fixed an assert. It didn't appear in release, but it could have bitten me in the ass at some point. --- GUI/EvtNameChangeDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/EvtNameChangeDialog.cpp b/GUI/EvtNameChangeDialog.cpp index 53a124c..4f7b895 100644 --- a/GUI/EvtNameChangeDialog.cpp +++ b/GUI/EvtNameChangeDialog.cpp @@ -46,7 +46,7 @@ void EvtNameChangeDialog::textEditEvent(wxCommandEvent&) { _lengthBitmap->SetBitmap(wxArtProvider::GetBitmap(wxART_CROSS_MARK, wxART_BUTTON)); } - _nameLength->SetLabel(wxString::Format("%u", value.length())); + _nameLength->SetLabel(wxString::Format("%zu", value.length())); if(_nameInput->Validate() == true) { _charsBitmap->SetBitmap(wxArtProvider::GetBitmap(wxART_TICK_MARK, wxART_BUTTON));