lib: fix conversion warnings with gcc on macOS

This commit is contained in:
Jay Satiro 2023-05-19 23:44:07 -04:00 committed by Daniel Stenberg
parent 954c7dfb91
commit 6f93d5f604
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 5 additions and 5 deletions

View file

@ -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 */

View file

@ -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);