os: add cast in os_time_sleep() to silence MSVC warning
authorBrian Paul <brianp@vmware.com>
Wed, 26 Jun 2013 15:28:20 +0000 (09:28 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Jun 2013 16:42:59 +0000 (10:42 -0600)
src/gallium/auxiliary/os/os_time.c

index 3612eba26808c2ea36c999500f2ab7f95428b7f2..f7e4ca49c7c5901061d0dc7612b60eb610539335 100644 (file)
@@ -84,7 +84,7 @@ os_time_get_nano(void)
 void
 os_time_sleep(int64_t usecs)
 {
-   DWORD dwMilliseconds = (usecs + 999) / 1000;
+   DWORD dwMilliseconds = (DWORD) ((usecs + 999) / 1000);
    /* Avoid Sleep(O) as that would cause to sleep for an undetermined duration */
    if (dwMilliseconds) {
       Sleep(dwMilliseconds);