mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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.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++;
|
||||
|
Loading…
Reference in New Issue
Block a user