From: Sergei Nikulov Date: Thu, 22 Mar 2018 13:34:11 +0000 (+0300) Subject: timeval: remove compilation warning by casting (#2417) X-Git-Tag: curl-7_60_0~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6231a89aa3961e357d7eb717548463985de2d08d;p=thirdparty%2Fcurl.git timeval: remove compilation warning by casting (#2417) This is fixes #2358 --- diff --git a/lib/timeval.c b/lib/timeval.c index 66f923a8ee..d11b95197b 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; }