mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
fixed a bug in the nodeset to boolean comparison code pointed out by
* xpath.c: fixed a bug in the nodeset to boolean comparison code pointed out by Melvyn Sopacua. Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
Mon Apr 1 10:02:57 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xpath.c: fixed a bug in the nodeset to boolean comparison code
|
||||
pointed out by Melvyn Sopacua.
|
||||
|
||||
Fri Mar 29 23:41:53 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* libxml.m4: Fr<46>d<EFBFBD>ric Crozat gave a patch related to the change
|
||||
|
4
xpath.c
4
xpath.c
@ -4423,9 +4423,11 @@ xmlXPathEqualValues(xmlXPathParserContextPtr ctxt) {
|
||||
case XPATH_NODESET:
|
||||
case XPATH_XSLT_TREE:
|
||||
if ((arg2->nodesetval == NULL) ||
|
||||
(arg2->nodesetval->nodeNr == 0)) ret = 0;
|
||||
(arg2->nodesetval->nodeNr == 0))
|
||||
ret = 0;
|
||||
else
|
||||
ret = 1;
|
||||
ret = (ret == arg1->boolval);
|
||||
break;
|
||||
case XPATH_BOOLEAN:
|
||||
#ifdef DEBUG_EXPR
|
||||
|
Reference in New Issue
Block a user