aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 375a8a51f5..57adcba26a 100644
--- a/thread.c
+++ b/thread.c
@@ -225,7 +225,7 @@ timeval_for(struct timeval *tv, const struct timespec *ts)
{
if (tv && ts) {
tv->tv_sec = ts->tv_sec;
- tv->tv_usec = (suseconds_t)(ts->tv_nsec / 1000);
+ tv->tv_usec = (int32_t)(ts->tv_nsec / 1000); /* 10**6 < 2**(32-1) */
return tv;
}
return 0;