From 6231a89aa3961e357d7eb717548463985de2d08d Mon Sep 17 00:00:00 2001 From: Sergei Nikulov Date: Thu, 22 Mar 2018 16:34:11 +0300 Subject: timeval: remove compilation warning by casting (#2417) This is fixes #2358 --- lib/timeval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/timeval.c b/lib/timeval.c index 66f923a8e..d11b95197 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -128,7 +128,7 @@ struct curltime Curl_now(void) struct curltime ret; (void)gettimeofday(&now, NULL); ret.tv_sec = now.tv_sec; - ret.tv_usec = now.tv_usec; + ret.tv_usec = (int)now.tv_usec; return ret; } -- cgit v1.2.3