1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

typecast the coversion from long to int

This commit is contained in:
Daniel Stenberg 2004-11-27 09:27:48 +00:00
parent 9a0d5c4ed8
commit a4752673bb

View File

@ -176,8 +176,9 @@ static CURLcode AllowServerConnect(struct connectdata *conn)
}
}
/* we give the server 60 seconds to connect to us, or a custom timeout */
timeout_ms = (timeout?timeout:60) * 1000;
/* We allow the server 60 seconds to connect to us, or a custom timeout.
Note the typecast here. */
timeout_ms = (timeout?(int)timeout:60) * 1000;
switch (Curl_select(sock, CURL_SOCKET_BAD, timeout_ms)) {
case -1: /* error */