os: add cast in os_time_sleep() to silence MSVC warning 62/7162/1
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 3612eba..f7e4ca4 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);