mirror of
https://github.com/curl/curl.git
synced 2026-07-26 00:47:20 +03:00
lib: fix conversion warnings with gcc on macOS
This commit is contained in:
parent
954c7dfb91
commit
6f93d5f604
5 changed files with 5 additions and 5 deletions
|
|
@ -102,7 +102,7 @@ int main(void)
|
|||
if(timeout.tv_sec > 1)
|
||||
timeout.tv_sec = 1;
|
||||
else
|
||||
timeout.tv_usec = (curl_timeo % 1000) * 1000;
|
||||
timeout.tv_usec = (int)(curl_timeo % 1000) * 1000;
|
||||
}
|
||||
|
||||
/* get file descriptors from the transfers */
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms)
|
|||
int res;
|
||||
|
||||
tv.tv_sec = timeout_ms / 1000;
|
||||
tv.tv_usec = (timeout_ms % 1000) * 1000;
|
||||
tv.tv_usec = (int)(timeout_ms % 1000) * 1000;
|
||||
|
||||
FD_ZERO(&infd);
|
||||
FD_ZERO(&outfd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue