From d2c13beb9bddbcd8d3be2c7954d3944e74bcfeee Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 16 Nov 2022 15:41:16 +0100 Subject: [PATCH 1/6] Fix warnings about type casts (#71313) --- lasso/xml/tools.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index 820c273b..bf0f950e 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -2559,10 +2559,10 @@ lasso_xmlURIEscapeStr(const xmlChar *from, const xmlChar *list) int ri; if (list == NULL) - list = ""; + list = (xmlChar*)""; for (fp = from; *fp; fp++) { - if (isalnum(*fp) || strchr("._~-", *fp) || strchr(list, *fp)) + if (isalnum(*fp) || strchr("._~-", *fp) || strchr((char*)list, *fp)) len++; else len += 3; @@ -2572,7 +2572,7 @@ lasso_xmlURIEscapeStr(const xmlChar *from, const xmlChar *list) ri = 0; 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; } else { int msb = (*fp & 0xf0) >> 4; -- 2.37.2