aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 1b195ef09..f092cbb3a 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3264,7 +3264,7 @@ static CURLcode ftp_nb_type(struct connectdata *conn,
{
struct ftp_conn *ftpc = &conn->proto.ftpc;
CURLcode result;
- char want = ascii?'A':'I';
+ char want = (char)(ascii?'A':'I');
if (ftpc->transfertype == want) {
state(conn, newstate);