# HG changeset patch # User asl # Date 1135850129 0 # Node ID e126375ffab77da2f058396fedc4d90a41d827ed # Parent ba637aa555ec8e41ba6069a12e7f9518a1592f70 * src/strtod.cxx (Ise): 'd' and 'D' aren't allowed in floating formats. diff --git a/packages/language/c/libc/stdlib/current/ChangeLog b/packages/language/c/libc/stdlib/current/ChangeLog --- 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 + + * src/strtod.cxx (Ise): 'd' and 'D' aren't allowed in floating + formats. + 2004-08-18 Fredrik Hederstierna 2004-08-18 Jonathan Larmour diff --git a/packages/language/c/libc/stdlib/current/src/strtod.cxx b/packages/language/c/libc/stdlib/current/src/strtod.cxx --- 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 */