Mercurial > nand-ecoscentric
changeset 2114:e126375ffab7
* src/strtod.cxx (Ise): 'd' and 'D' aren't allowed in floating
formats.
| author | asl |
|---|---|
| date | Thu, 29 Dec 2005 09:55:29 +0000 |
| parents | ba637aa555ec |
| children | 3e45f460a99e |
| files | packages/language/c/libc/stdlib/current/ChangeLog packages/language/c/libc/stdlib/current/src/strtod.cxx |
| diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/language/c/libc/stdlib/current/ChangeLog +++ b/packages/language/c/libc/stdlib/current/ChangeLog @@ -1,3 +1,8 @@ +2005-12-27 Sergei Organov <osv@javad.com> + + * src/strtod.cxx (Ise): 'd' and 'D' aren't allowed in floating + formats. + 2004-08-18 Fredrik Hederstierna <fredrik@wespot.com> 2004-08-18 Jonathan Larmour <jifl@eCosCentric.com>
--- a/packages/language/c/libc/stdlib/current/src/strtod.cxx +++ b/packages/language/c/libc/stdlib/current/src/strtod.cxx @@ -83,7 +83,7 @@ // MACROS -#define Ise(c) ((c == 'e') || (c == 'E') || (c == 'd') || (c == 'D')) +#define Ise(c) ((c == 'e') || (c == 'E')) #define Issign(c) ((c == '-') || (c == '+')) #define Val(c) ((c - '0')) @@ -219,7 +219,7 @@ strtod( const char *nptr, char **endptr if(Ise(*nptr)) { conv_done = 1; - if(*++nptr != '\0') /* skip e|E|d|D */ + if(*++nptr != '\0') /* skip e|E */ { /* ! ([nptr]xxx[.[yyy]]e) */ while(isspace(*nptr)) nptr++; /* Ansi allows spaces after e */
