mirror of
https://github.com/curl/curl.git
synced 2026-07-24 15:57:18 +03:00
Fix compiler warning: subscript has type `char'
This commit is contained in:
parent
f614fe4946
commit
e550df675a
1 changed files with 1 additions and 1 deletions
|
|
@ -2098,7 +2098,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||
if (checkprefix("ftp://", ppath) || checkprefix("ftps://", ppath)) {
|
||||
char *p = strstr(ppath, ";type=");
|
||||
if (p && p[6] && p[7] == 0) {
|
||||
switch (toupper(p[6])) {
|
||||
switch (toupper((int)((unsigned char)p[6]))) {
|
||||
case 'A':
|
||||
case 'D':
|
||||
case 'I':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue