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:
parent
fd9b09b281
commit
88f8f6f374
@ -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,
|
||||
|
7
xpath.c
7
xpath.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user