mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
multi: fix MinGW-w64 compiler warnings
error: conversion to 'long int' from 'time_t {aka long long int}' may alter its value [-Werror=conversion]
This commit is contained in:
parent
2c3af5b4c0
commit
068cd1ad4c
@ -2939,7 +2939,7 @@ void Curl_expire(struct Curl_easy *data, time_t milli)
|
|||||||
|
|
||||||
set = Curl_tvnow();
|
set = Curl_tvnow();
|
||||||
set.tv_sec += (long)(milli/1000);
|
set.tv_sec += (long)(milli/1000);
|
||||||
set.tv_usec += (milli%1000)*1000;
|
set.tv_usec += (long)(milli%1000)*1000;
|
||||||
|
|
||||||
if(set.tv_usec >= 1000000) {
|
if(set.tv_usec >= 1000000) {
|
||||||
set.tv_sec++;
|
set.tv_sec++;
|
||||||
@ -2996,7 +2996,7 @@ void Curl_expire_latest(struct Curl_easy *data, time_t milli)
|
|||||||
|
|
||||||
set = Curl_tvnow();
|
set = Curl_tvnow();
|
||||||
set.tv_sec += (long)(milli / 1000);
|
set.tv_sec += (long)(milli / 1000);
|
||||||
set.tv_usec += (milli % 1000) * 1000;
|
set.tv_usec += (long)(milli % 1000) * 1000;
|
||||||
|
|
||||||
if(set.tv_usec >= 1000000) {
|
if(set.tv_usec >= 1000000) {
|
||||||
set.tv_sec++;
|
set.tv_sec++;
|
||||||
|
Loading…
Reference in New Issue
Block a user