aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-03-27 22:50:59 +0200
committerMarcel Raad <raad@teamviewer.com>2017-03-27 22:50:59 +0200
commit068cd1ad4c2e1e7c6791cb78faf570554a32c17f (patch)
treea228fbd17da94401816beefcc4d4e5e419befd1d
parent2c3af5b4c0e9e6ea7485b88fe58d3d31de45278b (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]
-rw-r--r--lib/multi.c4
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++;