From d15bfe879400b9449e06bc7a81565450a20b99f4 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sun, 26 Apr 2015 14:46:49 +0400 Subject: [PATCH] Fix wrong printf() format specifiers in the screenshotgen util. Use "%ld" for long values, not "%d". --- utils/screenshotgen/src/guiframe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/screenshotgen/src/guiframe.cpp b/utils/screenshotgen/src/guiframe.cpp index 72aaf7aa8d..a26f3c2515 100644 --- a/utils/screenshotgen/src/guiframe.cpp +++ b/utils/screenshotgen/src/guiframe.cpp @@ -240,8 +240,8 @@ void GUIFrame::AddPanel_2() m_listCtrl1->InsertColumn(0, "Names"); m_listCtrl1->InsertColumn(1, "Values"); for(long index = 0; index < 5; index++) { - m_listCtrl1->InsertItem( index, wxString::Format(_("Item%d"),index)); - m_listCtrl1->SetItem(index, 1, wxString::Format("%d", index)); + m_listCtrl1->InsertItem( index, wxString::Format(_("Item%ld"),index)); + m_listCtrl1->SetItem(index, 1, wxString::Format("%ld", index)); } m_listCtrl1->SetToolTip( _("wxListCtrl") ); fgSizer2->Add( m_listCtrl1, m_commonExpandFlags);