preparing 2.4.16 updated and rebuilt the docs, rebuilt the API and web
* configure.in include/libxml/xmlwin32version.h: preparing 2.4.16
* doc/* python/libxml2class.txt: updated and rebuilt the docs,
rebuilt the API and web site
* xpath.c: fixed #71978 portability bugs
Daniel
diff --git a/xpath.c b/xpath.c
index 0707b16..3464c92 100644
--- a/xpath.c
+++ b/xpath.c
@@ -4425,7 +4425,15 @@
CAST_TO_NUMBER;
CHECK_TYPE(XPATH_NUMBER);
- ctxt->value->floatval /= val;
+ if (val == 0) {
+ if (ctxt->value->floatval == 0)
+ ctxt->value->floatval = xmlXPathNAN;
+ else if (ctxt->value->floatval > 0)
+ ctxt->value->floatval = xmlXPathPINF;
+ else if (ctxt->value->floatval < 0)
+ ctxt->value->floatval = xmlXPathNINF;
+ } else
+ ctxt->value->floatval /= val;
}
/**