projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21f8729
)
os: add cast in os_time_sleep() to silence MSVC warning
62/7162/1
author
Brian Paul
<brianp@vmware.com>
Wed, 26 Jun 2013 15:28:20 +0000
(09:28 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 26 Jun 2013 16:42:59 +0000
(10:42 -0600)
src/gallium/auxiliary/os/os_time.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/os/os_time.c
b/src/gallium/auxiliary/os/os_time.c
index
3612eba
..
f7e4ca4
100644
(file)
--- 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);