1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-10 08:58:16 +03:00

- xpath.c: fixed "*" (unbelievable !) and a couple of warnings

Daniel
This commit is contained in:
Daniel Veillard 2001-02-19 10:00:53 +00:00
parent fd9b09b281
commit 88f8f6f374
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Mon Feb 19 10:59:41 CET 2001 Bjorn Reese <breese@users.sourceforge.net>
* xpath.c: fixed "*" (unbelievable !) and a couple of warnings
Sun Feb 18 17:52:37 MET 2001 Bjorn Reese <breese@users.sourceforge.net>
* xpath.c: fixed whitespace handling in xmlXPathStringEvalNumber,

View File

@ -3309,7 +3309,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt, xmlXPathAxisVal axis,
#ifdef DEBUG_STEP
n++;
#endif
addNode(ret, attr);
addNode(ret, (xmlNodePtr) attr);
}
} else {
if ((attr->ns != NULL) &&
@ -3318,7 +3318,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt, xmlXPathAxisVal axis,
#ifdef DEBUG_STEP
n++;
#endif
addNode(ret, attr);
addNode(ret, (xmlNodePtr) attr);
}
}
}
@ -5149,6 +5149,9 @@ xmlXPathEvalPathExpr(xmlXPathParserContextPtr ctxt) {
if ((CUR == '$') || (CUR == '(') || (IS_DIGIT(CUR)) ||
(CUR == '\'') || (CUR == '"')) {
lc = 0;
} else if (CUR == '*') {
/* relative or absolute location path */
lc = 1;
} else if (CUR == '/') {
/* relative or absolute location path */
lc = 1;