diff options
| author | Mike Hommey <mh@glandium.org> | 2004-07-06 12:57:17 +0000 |
|---|---|---|
| committer | Mike Hommey <mh@glandium.org> | 2004-07-06 12:57:17 +0000 |
| commit | c14c53a3645d81281058d4bb4cff24fa8d6faf33 (patch) | |
| tree | 29bccc2e7499af078a3d1cdcfb517a1dee891be5 /xpath.c | |
| parent | d4e028c96af89ade493b440d4f2de6b684c03a06 (diff) | |
| download | libxml2-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |
