]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/thread.cpp
Add code to handle Cocoa, CocoaH, and CocoaR
[wxWidgets.git] / src / mac / thread.cpp
index 23a72037529fc718ccf96605f5a9d16ecc321457..3e4b1dfc490d05df06c212a4ba8922416dbf72ef 100644 (file)
@@ -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()