diff options
author | Thomas Broyer <tbroyer@src.gnome.org> | 2001-07-31 23:30:37 +0000 |
---|---|---|
committer | Thomas Broyer <tbroyer@src.gnome.org> | 2001-07-31 23:30:37 +0000 |
commit | f186c8259ae985cd56b3e14c1def484ab127fd14 (patch) | |
tree | 8a9298f82936887ba0fbbd910437c49e3e2dbb88 /xpath.c | |
parent | ba6db03c40b3ac223695fe08e96744ab389c6dab (diff) | |
download | android_external_libxml2-f186c8259ae985cd56b3e14c1def484ab127fd14.tar.gz android_external_libxml2-f186c8259ae985cd56b3e14c1def484ab127fd14.tar.bz2 android_external_libxml2-f186c8259ae985cd56b3e14c1def484ab127fd14.zip |
fixed a bug in xmlXPathNodeTrailingSorted (for now it worked like the
* xpath.c: fixed a bug in xmlXPathNodeTrailingSorted (for now it
worked like the set:leading() function)
* include/libxml/xpathInternals.h: added xmlXPathNodeSetContains
Diffstat (limited to 'xpath.c')
-rw-r--r-- | xpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2186,7 +2186,7 @@ xmlXPathNodeTrailingSorted (xmlNodeSetPtr nodes, xmlNodePtr node) { return(ret); l = xmlXPathNodeSetGetLength(nodes); - for (i = 0; i < l; i++) { + for (i = l; i > 0; i--) { cur = xmlXPathNodeSetItem(nodes, i); if (cur == node) break; |