]> granicus.if.org Git - curl/commitdiff
timeval: remove compilation warning by casting (#2417)
authorSergei Nikulov <snikulov@users.noreply.github.com>
Thu, 22 Mar 2018 13:34:11 +0000 (16:34 +0300)
committerGitHub <noreply@github.com>
Thu, 22 Mar 2018 13:34:11 +0000 (16:34 +0300)
This is fixes #2358

lib/timeval.c

index 66f923a8eed07546bd0fbdbb059a4e5652d4967a..d11b95197b199e4715c1709f685d7f307f0e70df 100644 (file)
@@ -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;
 }