summaryrefslogtreecommitdiff
path: root/xpath.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2004-07-06 12:57:17 +0000
committerMike Hommey <mh@glandium.org>2004-07-06 12:57:17 +0000
commitc14c53a3645d81281058d4bb4cff24fa8d6faf33 (patch)
tree29bccc2e7499af078a3d1cdcfb517a1dee891be5 /xpath.c
parentd4e028c96af89ade493b440d4f2de6b684c03a06 (diff)
downloadlibxml2-upstream/2.6.11.tar.gz
Load /tmp/tmp.DIvcnD/libxml2-2.6.11 intoupstream/2.6.11
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xpath.c b/xpath.c
index c964e37..9bbfdce 100644
--- a/xpath.c
+++ b/xpath.c
@@ -7593,6 +7593,8 @@ xmlXPathStringEvalNumber(const xmlChar *str) {
if (*cur == '-') {
is_exponent_negative = 1;
cur++;
+ } else if (*cur == '+') {
+ cur++;
}
while ((*cur >= '0') && (*cur <= '9')) {
exponent = exponent * 10 + (*cur - '0');
@@ -7673,7 +7675,9 @@ xmlXPathCompNumber(xmlXPathParserContextPtr ctxt)
if (CUR == '-') {
is_exponent_negative = 1;
NEXT;
- }
+ } else if (CUR == '+') {
+ NEXT;
+ }
while ((CUR >= '0') && (CUR <= '9')) {
exponent = exponent * 10 + (CUR - '0');
NEXT;
@@ -10588,6 +10592,7 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
if ((oldset == NULL) || (oldset->nodeNr == 0)) {
ctxt->context->contextSize = 0;
ctxt->context->proximityPosition = 0;
+/*
if (op->ch2 != -1)
total +=
xmlXPathCompOpEval(ctxt,
@@ -10596,6 +10601,7 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
res = valuePop(ctxt);
if (res != NULL)
xmlXPathFreeObject(res);
+*/
valuePush(ctxt, obj);
ctxt->context->node = oldnode;
CHECK_ERROR0;