diff options
author | José Fonseca <[email protected]> | 2014-03-03 14:53:30 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2014-03-04 12:05:23 +0000 |
commit | f34d75d6f69f4c0bf391e0adf1fd469601b01b04 (patch) | |
tree | 22e5307a754ed187a246551589934bd09277db74 /include/c11 | |
parent | 1337da51152db7fa1a71ac86b61b51a42d29d595 (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]>
Diffstat (limited to 'include/c11')
-rw-r--r-- | include/c11/threads_win32.h | 2 |
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 |