From 7e0e5fe1e45d09f42da48bc9b70231f0471f2ec2 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 6 Mar 2003 16:38:19 +0000 Subject: [PATCH] value expansion to double git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/thread.cpp | 2 +- src/mac/thread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() -- 2.47.2