mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Fix compiler warning
This commit is contained in:
parent
a137109a0c
commit
048bfeaaef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user