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
diff --git a/xpath.c b/xpath.c
index ac37f73..68d4452 100644
--- a/xpath.c
+++ b/xpath.c
@@ -4423,9 +4423,11 @@
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