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
diff --git a/xpath.c b/xpath.c
index c964e37..9b58fa2 100644
--- a/xpath.c
+++ b/xpath.c
@@ -7593,6 +7593,8 @@
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 @@
if (CUR == '-') {
is_exponent_negative = 1;
NEXT;
- }
+ } else if (CUR == '+') {
+ NEXT;
+ }
while ((CUR >= '0') && (CUR <= '9')) {
exponent = exponent * 10 + (CUR - '0');
NEXT;