projects
/
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
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 3612eba26808c2ea36c999500f2ab7f95428b7f2..f7e4ca49c7c5901061d0dc7612b60eb610539335 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);