From a4752673bb1a2c74c0cb2042ad9154c833585cf8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 27 Nov 2004 09:27:48 +0000 Subject: typecast the coversion from long to int --- lib/ftp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ftp.c b/lib/ftp.c index 4a6f07a71..e33f4b38f 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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 */ -- cgit v1.2.3