From: Yang Tse Date: Tue, 23 Oct 2007 10:14:24 +0000 (+0000) Subject: Fix compiler warning: subscript has type `char' X-Git-Tag: curl-7_17_1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e550df675a6e6d3b1f55a779df92c9b7b9747842;p=thirdparty%2Fcurl.git Fix compiler warning: subscript has type `char' --- diff --git a/lib/http.c b/lib/http.c index 7c63097c95..1e36a2d0eb 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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':