From c78cb0d9790e073fb30c11e179bb7bd2db78db95 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 15 Nov 2013 13:34:58 +0000 Subject: [PATCH] Fix assert due to incorrect format being used in listctrl sample. "%d" can't be used with long wxListEvent::GetIndex() value in 64 bit builds. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/listctrl/listtest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index f4a0a5319c..d25886e703 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -1305,7 +1305,7 @@ void MyListCtrl::OnRightClick(wxMouseEvent& event) void MyListCtrl::LogEvent(const wxListEvent& event, const wxChar *eventName) { - wxLogMessage(wxT("Item %d: %s (item text = %s, data = %ld)"), + wxLogMessage(wxT("Item %ld: %s (item text = %s, data = %ld)"), event.GetIndex(), eventName, event.GetText(), static_cast(event.GetData())); }