From: Brian Paul Date: Wed, 26 Jun 2013 15:28:20 +0000 (-0600) Subject: os: add cast in os_time_sleep() to silence MSVC warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f06e60fde48d7249fef97d5295ff62ac424e583c;p=mesa.git os: add cast in os_time_sleep() to silence MSVC warning --- diff --git a/src/gallium/auxiliary/os/os_time.c b/src/gallium/auxiliary/os/os_time.c index 3612eba2680..f7e4ca49c7c 100644 --- a/src/gallium/auxiliary/os/os_time.c +++ b/src/gallium/auxiliary/os/os_time.c @@ -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);