From 068cd1ad4c2e1e7c6791cb78faf570554a32c17f Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 27 Mar 2017 22:50:59 +0200 Subject: multi: fix MinGW-w64 compiler warnings error: conversion to 'long int' from 'time_t {aka long long int}' may alter its value [-Werror=conversion] --- lib/multi.c | 4 ++-- 1 file 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++; -- cgit v1.2.3