aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergei Nikulov <snikulov@users.noreply.github.com>2018-03-22 16:34:11 +0300
committerGitHub <noreply@github.com>2018-03-22 16:34:11 +0300
commit6231a89aa3961e357d7eb717548463985de2d08d (patch)
treea5a389c668ccb8dcf3c89a2e765a96fbb5490847 /lib
parentdb1b2c7fe9b093f8c3d33304a47657ea4a6e65b4 (diff)
timeval: remove compilation warning by casting (#2417)
This is fixes #2358
Diffstat (limited to 'lib')
-rw-r--r--lib/timeval.c2
1 files changed, 1 insertions, 1 deletions
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;
}