diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-02 15:26:30 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-02 15:26:30 +0000 |
commit | 048bfeaaefe04001b6610b45a6ab6cfa02bcffd3 (patch) | |
tree | edbc36adcf414cafc3c0151a8d71f5da1077d2b9 | |
parent | a137109a0c516cfc3557133249f91524c3941783 (diff) |
Fix compiler warning
-rw-r--r-- | lib/ftp.c | 2 | ||||
-rw-r--r-- | lib/url.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); @@ -2884,7 +2884,7 @@ static CURLcode setup_range(struct SessionHandle *data) else req->range = strdup(data->set.str[STRING_SET_RANGE]); - req->rangestringalloc = req->range?TRUE:FALSE; + req->rangestringalloc = (unsigned char)(req->range?TRUE:FALSE); if(!req->range) return CURLE_OUT_OF_MEMORY; |