From ee19ab6d804cd61575ca03131888c7d6f2a4daa1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 Aug 2011 10:35:29 +0000 Subject: [PATCH] Use correct format specifier for thread id in the sample. Thread id is an (unsigned) long, not just unsigned, so use "%lx" to print it instead of "%x" to avoid asserts in formatting code. Closes #13404. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/thread/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/thread/thread.cpp b/samples/thread/thread.cpp index 6b0903cb82..1e5c3ee9fb 100644 --- a/samples/thread/thread.cpp +++ b/samples/thread/thread.cpp @@ -479,7 +479,7 @@ MyFrame::DoLogRecord(wxLogLevel level, wxDateTime(info.timestamp).FormatISOTime(), info.threadId == wxThread::GetMainId() ? wxString("main") - : wxString::Format("%x", info.threadId), + : wxString::Format("%lx", info.threadId), msg + "\n" ); } -- 2.47.2