mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
os: add cast in os_time_sleep() to silence MSVC warning
This commit is contained in:
parent
21f8729c3d
commit
f06e60fde4
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue