aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
-rw-r--r--lib/url.c2
2 files changed, 2 insertions, 2 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);
diff --git a/lib/url.c b/lib/url.c
index 878c92d44..afb0b3837 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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;