]> git.saurik.com Git - wxWidgets.git/commitdiff
fix MSVC /Wp64 warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 May 2008 23:58:15 +0000 (23:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 May 2008 23:58:15 +0000 (23:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/thread/thread.cpp

index d85db154a444d8a31f3aa468fb912bd2e8a1d17e..87c0e07e0268e5e83943e82fe3e63687f4a60fa5 100644 (file)
@@ -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))