summaryrefslogtreecommitdiff
path: root/tests/libtest/testutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/testutil.c')
-rw-r--r--tests/libtest/testutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/testutil.c b/tests/libtest/testutil.c
index 94a0b46be..d40603d91 100644
--- a/tests/libtest/testutil.c
+++ b/tests/libtest/testutil.c
@@ -55,7 +55,7 @@ struct timeval tutil_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