Fix warnings about type casts (#71400)
This commit is contained in:
parent
8a588a8acb
commit
6389b2ca48
|
@ -2578,10 +2578,10 @@ lasso_xmlURIEscapeStr(const xmlChar *from, const xmlChar *list)
|
||||||
int ri;
|
int ri;
|
||||||
|
|
||||||
if (list == NULL)
|
if (list == NULL)
|
||||||
list = "";
|
list = (xmlChar*)"";
|
||||||
|
|
||||||
for (fp = from; *fp; fp++) {
|
for (fp = from; *fp; fp++) {
|
||||||
if (isalnum(*fp) || strchr("._~-", *fp) || strchr(list, *fp))
|
if (isalnum(*fp) || strchr("._~-", *fp) || strchr((char*)list, *fp))
|
||||||
len++;
|
len++;
|
||||||
else
|
else
|
||||||
len += 3;
|
len += 3;
|
||||||
|
@ -2591,7 +2591,7 @@ lasso_xmlURIEscapeStr(const xmlChar *from, const xmlChar *list)
|
||||||
ri = 0;
|
ri = 0;
|
||||||
|
|
||||||
for (fp = from; *fp; fp++) {
|
for (fp = from; *fp; fp++) {
|
||||||
if (isalnum(*fp) || strchr("._~-", *fp) || strchr(list, *fp)) {
|
if (isalnum(*fp) || strchr("._~-", *fp) || strchr((char*)list, *fp)) {
|
||||||
result[ri++] = *fp;
|
result[ri++] = *fp;
|
||||||
} else {
|
} else {
|
||||||
int msb = (*fp & 0xf0) >> 4;
|
int msb = (*fp & 0xf0) >> 4;
|
||||||
|
|
Loading…
Reference in New Issue