fixed to allow '+' in exponent of number (bug 143005) fixed typo in last

* xpath.c: fixed to allow '+' in exponent of number
  (bug 143005)
* SAX2.c: fixed typo in last commit
This commit is contained in:
William M. Brack 2004-05-24 02:52:28 +00:00
parent 5ef2f8129f
commit 9912705b82
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon May 24 08:22:48 HKT 2004 William Brack <wbrack@mmm.com.hk>
* xpath.c: fixed to allow '+' in exponent of number
(bug 143005)
* SAX2.c: fixed typo in last commit
Sat May 22 09:08:24 HKT 2004 William Brack <wbrack@mmm.com.hk>
* SAX2.c: skipped call to xmlValidateNCName when compiling

View File

@ -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;