summaryrefslogtreecommitdiff
path: root/lib/timeval.c
diff options
context:
space:
mode:
authorEric Gallager <egall@gwmail.gwu.edu>2018-02-12 01:42:47 -0500
committerDaniel Stenberg <daniel@haxx.se>2018-04-07 11:18:58 +0200
commita19fefb0706f939d2df7a76704ee549fecb1c4fd (patch)
tree46ffddbc152bbf3753e132af5997df91b146ba3c /lib/timeval.c
parent4e884615d1702914c1ec4c182f94eb9b8efc7a16 (diff)
downloadcurl-a19fefb0706f939d2df7a76704ee549fecb1c4fd.tar.gz
build: add picky compiler warning flags for gcc 6 and 7
Diffstat (limited to 'lib/timeval.c')
-rw-r--r--lib/timeval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/timeval.c b/lib/timeval.c
index d11b95197..f4bf83531 100644
--- a/lib/timeval.c
+++ b/lib/timeval.c
@@ -110,7 +110,7 @@ struct curltime Curl_now(void)
usecs /= 1000;
cnow.tv_sec = usecs / 1000000;
- cnow.tv_usec = usecs % 1000000;
+ cnow.tv_usec = (int)(usecs % 1000000);
return cnow;
}