X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..9bd1404d20e43b9697fdf3b033c0bb1a884dbe21:/src/mac/carbon/thread.cpp diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index 23a7203752..e31c812c02 100644 --- a/src/mac/carbon/thread.cpp +++ b/src/mac/carbon/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 ; }