diff --git a/lib/ftp.c b/lib/ftp.c index 568a9b917..1d7b9c284 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -860,7 +860,8 @@ CURLcode _ftp(struct connectdata *conn) * previous lookup. */ he = conn->hp; - connectport = data->port; /* we connect to the proxy's port */ + connectport = + (unsigned short)data->port; /* we connect to the proxy's port */ } else { /* normal, direct, ftp connection */