diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-03-27 22:50:59 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-03-27 22:50:59 +0200 |
commit | 068cd1ad4c2e1e7c6791cb78faf570554a32c17f (patch) | |
tree | a228fbd17da94401816beefcc4d4e5e419befd1d /lib | |
parent | 2c3af5b4c0e9e6ea7485b88fe58d3d31de45278b (diff) |
multi: fix MinGW-w64 compiler warnings
error: conversion to 'long int' from 'time_t {aka long long int}' may alter
its value [-Werror=conversion]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/multi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c index 6cdba393e..88ce00566 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -2939,7 +2939,7 @@ void Curl_expire(struct Curl_easy *data, time_t milli) set = Curl_tvnow(); set.tv_sec += (long)(milli/1000); - set.tv_usec += (milli%1000)*1000; + set.tv_usec += (long)(milli%1000)*1000; if(set.tv_usec >= 1000000) { set.tv_sec++; @@ -2996,7 +2996,7 @@ void Curl_expire_latest(struct Curl_easy *data, time_t milli) set = Curl_tvnow(); set.tv_sec += (long)(milli / 1000); - set.tv_usec += (milli % 1000) * 1000; + set.tv_usec += (long)(milli % 1000) * 1000; if(set.tv_usec >= 1000000) { set.tv_sec++; |