summaryrefslogtreecommitdiffstats
path: root/osdep/win32
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/win32')
-rw-r--r--osdep/win32/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/win32/pthread.c b/osdep/win32/pthread.c
index 11a0c50476..d25a3da693 100644
--- a/osdep/win32/pthread.c
+++ b/osdep/win32/pthread.c
@@ -128,7 +128,7 @@ int pthread_cond_timedwait(pthread_cond_t *restrict cond,
timeout_ms = INFINITE;
} else if (abstime->tv_sec >= ts.tv_sec) {
int64_t msec = (abstime->tv_sec - ts.tv_sec) * INT64_C(1000) +
- (abstime->tv_nsec - ts.tv_nsec) / INT64_C(10000000);
+ (abstime->tv_nsec - ts.tv_nsec) / INT64_C(1000000);
if (msec > ULONG_MAX) {
timeout_ms = INFINITE;
} else if (msec > 0) {