summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-06-26 09:28:20 -0600
committerBrian Paul <[email protected]>2013-06-26 10:42:59 -0600
commitf06e60fde48d7249fef97d5295ff62ac424e583c (patch)
tree9c9f5a6a104a7f4f27f739b3bdf531f5f272af30
parent21f8729c3da4443b2db00da20f5afd880362701e (diff)
os: add cast in os_time_sleep() to silence MSVC warning
-rw-r--r--src/gallium/auxiliary/os/os_time.c2
1 files changed, 1 insertions, 1 deletions
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);