From: Stefan Csomor Date: Thu, 6 Mar 2003 16:38:19 +0000 (+0000) Subject: value expansion to double X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7e0e5fe1e45d09f42da48bc9b70231f0471f2ec2 value expansion to double git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index 23a7203752..3e4b1dfc49 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() diff --git a/src/mac/thread.cpp b/src/mac/thread.cpp index 23a7203752..3e4b1dfc49 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()