From f06e60fde48d7249fef97d5295ff62ac424e583c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 26 Jun 2013 09:28:20 -0600 Subject: [PATCH] os: add cast in os_time_sleep() to silence MSVC warning --- src/gallium/auxiliary/os/os_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2