Treat numbers after [Ee] a positive number rather than an invalid

one.
This commit is contained in:
Xin LI 2010-02-20 01:23:15 +00:00
parent ad54221048
commit 0a167a9b98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204107

View File

@ -207,7 +207,8 @@ numeric(const char *s)
}
if (ISEXP((unsigned char)*s)) {
s++;
if (ISSIGN((unsigned char)*s)) {
if (ISSIGN((unsigned char)*s) ||
isdigit((unsigned char)*s)) {
s++;
continue;
}