diff options
Diffstat (limited to 'src/tool_util.c')
-rw-r--r-- | src/tool_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_util.c b/src/tool_util.c index 3ca13e7cb..de98b8282 100644 --- a/src/tool_util.c +++ b/src/tool_util.c @@ -74,7 +74,7 @@ struct timeval tvnow(void) struct timespec tsnow; if(0 == clock_gettime(CLOCK_MONOTONIC, &tsnow)) { now.tv_sec = tsnow.tv_sec; - now.tv_usec = tsnow.tv_nsec / 1000; + now.tv_usec = (int)(tsnow.tv_nsec / 1000); } /* ** Even when the configure process has truly detected monotonic clock |