From 46c89348b973b1088a4310e740def9859ef05408 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 1 Jan 2019 18:03:11 +0100 Subject: tvnow: silence conversion warnings MinGW-w64 defaults to targeting Windows 7 now, so GetTickCount64 is used and the milliseconds are represented as unsigned long long, leading to a compiler warning when implicitly converting them to long. --- src/tool_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.1