mirror of
https://github.com/curl/curl.git
synced 2026-08-04 13:36:18 +03:00
long/int mess
Typecast when converting to int from long to avoid some compiler warnings
This commit is contained in:
parent
a2a2863306
commit
ee015947d4
1 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd,
|
|||
value indicating a blocking call should be performed. */
|
||||
|
||||
if(timeout_ms > 0) {
|
||||
pending_ms = timeout_ms;
|
||||
pending_ms = (int)timeout_ms;
|
||||
initial_tv = curlx_tvnow();
|
||||
}
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd,
|
|||
if(error && error_not_EINTR)
|
||||
break;
|
||||
if(timeout_ms > 0) {
|
||||
pending_ms = timeout_ms - elapsed_ms;
|
||||
pending_ms = (int)(timeout_ms - elapsed_ms);
|
||||
if(pending_ms <= 0)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue