os: add cast in os_time_sleep() to silence MSVC warning

This commit is contained in:
Brian Paul 2013-06-26 09:28:20 -06:00
parent 21f8729c3d
commit f06e60fde4

View file

@ -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);