Fix compiler warning: subscript has type `char'

This commit is contained in:
Yang Tse 2007-10-23 10:14:24 +00:00
parent f614fe4946
commit e550df675a

View File

@ -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':