aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2017-04-04 02:43:21 -0400
committerJay Satiro <raysatiro@yahoo.com>2017-04-04 02:43:21 -0400
commita68ca63d7313dcc266f92108b2694d43b0afeba7 (patch)
treee84a4227cb0cfc8291f01ea85d752000065d662d
parentd9c9611a2fee017c9b843be75cdd141944cfc74f (diff)
easy: silence compiler warning
Safe to silence warning adding time delta of poll, which can trigger on Windows since sizeof time_t > sizeof long. warning C4244: '+=' : conversion from 'time_t' to 'long', possible loss of data
-rw-r--r--lib/easy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c
index b3159d1a2..8822b42c8 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -619,7 +619,7 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev)
/* If nothing updated the timeout, we decrease it by the spent time.
* If it was updated, it has the new timeout time stored already.
*/
- ev->ms += curlx_tvdiff(after, before);
+ ev->ms += (long)curlx_tvdiff(after, before);
}
else