diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-07-15 13:34:05 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-07-15 13:34:05 +0000 |
commit | 34ba38793669da505d735e76794253b23dec447c (patch) | |
tree | 023d8c383bffc199ae1833408ae1e6c2aee1ebce /xpath.c | |
parent | 3dc93a42432cbf6e40d4ac3a4e61152d86a9f7dd (diff) | |
download | android_external_libxml2-34ba38793669da505d735e76794253b23dec447c.tar.gz android_external_libxml2-34ba38793669da505d735e76794253b23dec447c.tar.bz2 android_external_libxml2-34ba38793669da505d735e76794253b23dec447c.zip |
removed some warnings by casting xmlChar to unsigned int and a couple of
* DOCBparser.c HTMLparser.c entities.c parser.c relaxng.c
xmlschemas.c xpath.c: removed some warnings by casting xmlChar
to unsigned int and a couple of others.
* xmlschemastypes.c: fixes a segfault on empty hexBinary strings
Daniel
Diffstat (limited to 'xpath.c')
-rw-r--r-- | xpath.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -7560,9 +7560,9 @@ xmlXPathParseLiteral(xmlXPathParserContextPtr ctxt) { if (CUR == '"') { NEXT; q = CUR_PTR; - while ((IS_CHAR(CUR)) && (CUR != '"')) + while ((IS_CHAR((unsigned int) CUR)) && (CUR != '"')) NEXT; - if (!IS_CHAR(CUR)) { + if (!IS_CHAR((unsigned int) CUR)) { XP_ERROR0(XPATH_UNFINISHED_LITERAL_ERROR); } else { ret = xmlStrndup(q, CUR_PTR - q); @@ -7571,9 +7571,9 @@ xmlXPathParseLiteral(xmlXPathParserContextPtr ctxt) { } else if (CUR == '\'') { NEXT; q = CUR_PTR; - while ((IS_CHAR(CUR)) && (CUR != '\'')) + while ((IS_CHAR((unsigned int) CUR)) && (CUR != '\'')) NEXT; - if (!IS_CHAR(CUR)) { + if (!IS_CHAR((unsigned int) CUR)) { XP_ERROR0(XPATH_UNFINISHED_LITERAL_ERROR); } else { ret = xmlStrndup(q, CUR_PTR - q); @@ -7604,9 +7604,9 @@ xmlXPathCompLiteral(xmlXPathParserContextPtr ctxt) { if (CUR == '"') { NEXT; q = CUR_PTR; - while ((IS_CHAR(CUR)) && (CUR != '"')) + while ((IS_CHAR((unsigned int) CUR)) && (CUR != '"')) NEXT; - if (!IS_CHAR(CUR)) { + if (!IS_CHAR((unsigned int) CUR)) { XP_ERROR(XPATH_UNFINISHED_LITERAL_ERROR); } else { ret = xmlStrndup(q, CUR_PTR - q); @@ -7615,9 +7615,9 @@ xmlXPathCompLiteral(xmlXPathParserContextPtr ctxt) { } else if (CUR == '\'') { NEXT; q = CUR_PTR; - while ((IS_CHAR(CUR)) && (CUR != '\'')) + while ((IS_CHAR((unsigned int) CUR)) && (CUR != '\'')) NEXT; - if (!IS_CHAR(CUR)) { + if (!IS_CHAR((unsigned int) CUR)) { XP_ERROR(XPATH_UNFINISHED_LITERAL_ERROR); } else { ret = xmlStrndup(q, CUR_PTR - q); |