]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/thread/thread.cpp
fix MSVC /Wp64 warnings
[wxWidgets.git] / 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))