From: Vadim Zeitlin Date: Wed, 28 May 2008 23:58:15 +0000 (+0000) Subject: fix MSVC /Wp64 warnings X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cd431efcdfaa08e1fb87a8f4d74a2a0bb8de8ed7 fix MSVC /Wp64 warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/thread/thread.cpp b/samples/thread/thread.cpp index d85db154a4..87c0e07e02 100644 --- a/samples/thread/thread.cpp +++ b/samples/thread/thread.cpp @@ -321,7 +321,7 @@ public: virtual ExitCode Entry() { - return (ExitCode)EXEC(m_command); + return wxUIntToPtr(EXEC(m_command)); } private: @@ -674,7 +674,7 @@ void MyFrame::OnExecThread(wxCommandEvent& WXUNUSED(event)) thread.Run(); wxLogMessage(wxT("The exit code from a child thread is %ld"), - (long)thread.Wait()); + (long)wxPtrToUInt(thread.Wait())); } void MyFrame::OnShowCPUs(wxCommandEvent& WXUNUSED(event))