1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-11 05:58:01 -05:00

timeval: remove compilation warning by casting (#2417)

This is fixes #2358
This commit is contained in:
Sergei Nikulov 2018-03-22 16:34:11 +03:00 committed by GitHub
parent db1b2c7fe9
commit 6231a89aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;
}