summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-03-03 14:53:30 +0000
committerJosé Fonseca <jfonseca@vmware.com>2014-03-04 12:05:23 +0000
commitf34d75d6f69f4c0bf391e0adf1fd469601b01b04 (patch)
tree22e5307a754ed187a246551589934bd09277db74 /include
parent1337da51152db7fa1a71ac86b61b51a42d29d595 (diff)
c11/threads: Fix nano to milisecond conversion.
Per https://gist.github.com/yohhoy/2223710/#comment-710118 Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Michel Dänzer <michel@daenzer.net>
Diffstat (limited to 'include')
-rw-r--r--include/c11/threads_win32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/c11/threads_win32.h b/include/c11/threads_win32.h
index be1a389572..771db9460f 100644
--- a/include/c11/threads_win32.h
+++ b/include/c11/threads_win32.h
@@ -146,7 +146,7 @@ static unsigned __stdcall impl_thrd_routine(void *p)
static DWORD impl_xtime2msec(const xtime *xt)
{
- return (DWORD)((xt->sec * 1000u) + (xt->nsec / 1000));
+ return (DWORD)((xt->sec * 1000U) + (xt->nsec / 1000000L));
}
#ifdef EMULATED_THREADS_USE_NATIVE_CALL_ONCE