mirror of
https://github.com/curl/curl.git
synced 2026-08-24 10:43:32 +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
|
|
@ -162,7 +162,7 @@ static int curlTimerCallback(CURLM *multi, long timeout_ms, void *userp)
|
|||
}
|
||||
if(timeout_ms != -1) {
|
||||
*timeout = tutil_tvnow();
|
||||
timeout->tv_usec += timeout_ms * 1000;
|
||||
timeout->tv_usec += (int)timeout_ms * 1000;
|
||||
}
|
||||
else {
|
||||
timeout->tv_sec = -1;
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ static int curlTimerCallback(CURLM *multi, long timeout_ms, void *userp)
|
|||
(void)multi; /* unused */
|
||||
if(timeout_ms != -1) {
|
||||
*timeout = tutil_tvnow();
|
||||
timeout->tv_usec += timeout_ms * 1000;
|
||||
timeout->tv_usec += (int)timeout_ms * 1000;
|
||||
}
|
||||
else {
|
||||
timeout->tv_sec = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue