mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
fix compiler warning: implicit conversion from "long" to "int"
This commit is contained in:
parent
e4b754f64e
commit
842be6c52f
@ -172,7 +172,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
|
|||||||
(SOCKERRNO != EINTR) &&
|
(SOCKERRNO != EINTR) &&
|
||||||
#endif
|
#endif
|
||||||
((timeout_ms < 0) ||
|
((timeout_ms < 0) ||
|
||||||
((pending_ms = timeout_ms - curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
|
((pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
|
||||||
|
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return -1;
|
return -1;
|
||||||
@ -239,7 +239,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
|
|||||||
(SOCKERRNO != EINTR) &&
|
(SOCKERRNO != EINTR) &&
|
||||||
#endif
|
#endif
|
||||||
((timeout_ms < 0) ||
|
((timeout_ms < 0) ||
|
||||||
((pending_ms = timeout_ms - curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
|
((pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
|
||||||
|
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return -1;
|
return -1;
|
||||||
@ -325,7 +325,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
|
|||||||
(SOCKERRNO != EINTR) &&
|
(SOCKERRNO != EINTR) &&
|
||||||
#endif
|
#endif
|
||||||
((timeout_ms < 0) ||
|
((timeout_ms < 0) ||
|
||||||
((pending_ms = timeout_ms - curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
|
((pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
|
||||||
|
|
||||||
#else /* HAVE_POLL_FINE */
|
#else /* HAVE_POLL_FINE */
|
||||||
|
|
||||||
@ -364,7 +364,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
|
|||||||
(SOCKERRNO != EINTR) &&
|
(SOCKERRNO != EINTR) &&
|
||||||
#endif
|
#endif
|
||||||
((timeout_ms < 0) ||
|
((timeout_ms < 0) ||
|
||||||
((pending_ms = timeout_ms - curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
|
((pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
|
||||||
|
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user