X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f19fc8cae9c4eced886d3680dab7a48476f1c1e..44f5b995740b69ba222e92a5f7da87080afe4367:/src/mac/thread.cpp diff --git a/src/mac/thread.cpp b/src/mac/thread.cpp index 474b92a22f..e31c812c02 100644 --- a/src/mac/thread.cpp +++ b/src/mac/thread.cpp @@ -527,7 +527,7 @@ void wxThread::Sleep(unsigned long milliseconds) do { YieldToAnyThread(); - } while( clock() - start < (milliseconds * CLOCKS_PER_SEC) / 1000 ) ; + } while( clock() - start < milliseconds / 1000.0 * CLOCKS_PER_SEC ) ; } int wxThread::GetCPUCount() @@ -852,7 +852,7 @@ bool wxThreadModule::OnInit() #endif if ( !hasThreadManager ) { - wxMessageBox( "Error" , "Thread Support is not available on this System" , wxOK ) ; + wxMessageBox( wxT("Error") , wxT("Thread Support is not available on this System") , wxOK ) ; return FALSE ; } @@ -902,5 +902,3 @@ bool WXDLLEXPORT wxIsWaitingForThread() #include "wx/thrimpl.cpp" #endif // wxUSE_THREADS - -// vi:sts=4:sw=4:et