summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2014-03-03 14:53:30 +0000
committerJosé Fonseca <[email protected]>2014-03-04 12:05:23 +0000
commitf34d75d6f69f4c0bf391e0adf1fd469601b01b04 (patch)
tree22e5307a754ed187a246551589934bd09277db74
parent1337da51152db7fa1a71ac86b61b51a42d29d595 (diff)
c11/threads: Fix nano to milisecond conversion.
Per https://gist.github.com/yohhoy/2223710/#comment-710118 Cc: "10.0" "10.1" <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
-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 be1a3895727..771db9460fb 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