Skip to content
Snippets Groups Projects
Commit 35908749 authored by Yang Tse's avatar Yang Tse
Browse files

multi: fix compiler warning: conversion may lose significant bits

parent e39ab6f2
No related branches found
No related tags found
No related merge requests found
......@@ -2568,15 +2568,12 @@ void Curl_expire(struct SessionHandle *data, long milli)
}
else {
struct timeval set;
int rest;
set = Curl_tvnow();
set.tv_sec += milli/1000;
set.tv_usec += (milli%1000)*1000;
rest = (int)(set.tv_usec - 1000000);
if(rest > 0) {
/* bigger than a full microsec */
if(set.tv_usec > 1000000) {
set.tv_sec++;
set.tv_usec -= 1000000;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment