mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2024-12-03 18:00:55 +00:00
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:
parent
5ef2f8129f
commit
9912705b82
@ -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
|
||||
|
6
xpath.c
6
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;
|
||||
|
Loading…
Reference in New Issue
Block a user