aboutsummaryrefslogtreecommitdiff
path: root/src/tool_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_util.c')
-rw-r--r--src/tool_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_util.c b/src/tool_util.c
index 1a5b773e2..9990a4634 100644
--- a/src/tool_util.c
+++ b/src/tool_util.c
@@ -47,7 +47,7 @@ struct timeval tvnow(void)
DWORD milliseconds = GetTickCount();
#endif
now.tv_sec = (long)(milliseconds / 1000);
- now.tv_usec = (milliseconds % 1000) * 1000;
+ now.tv_usec = (long)((milliseconds % 1000) * 1000);
return now;
}