+2012-12-19 Corinna Vinschen <vinschen@redhat.com>
+
+ * libc/stdlib/strtod.c (_strtod_r): Revert change from 2011-05-16.
+
2012-12-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h: Remove the log2f macro.
}
nd0 = nd;
if (strncmp (s, _localeconv_r (ptr)->decimal_point,
- strlen (_localeconv_r (ptr)->decimal_point)) == 0) {
+ strlen (_localeconv_r (ptr)->decimal_point)) == 0)
+ {
decpt = 1;
c = *(s += strlen (_localeconv_r (ptr)->decimal_point));
if (!nd) {
have_dig:
nz++;
if (c -= '0') {
+ nf += nz;
for(i = 1; i < nz; i++) {
- if (nd <= DBL_DIG + 1) {
- if (nd + i < 10)
+ if (nd++ <= DBL_DIG + 1) {
+ if (nd < 10)
y *= 10;
else
z *= 10;
}
}
- if (nd <= DBL_DIG + 1) {
- if (nd + i < 10)
+ if (nd++ <= DBL_DIG + 1) {
+ if (nd < 10)
y = 10*y + c;
else
z = 10*z + c;
}
- if (nd <= DBL_DIG + 1) {
- nf += nz;
- nd += nz;
- }
nz = 0;
+ }
}
}
- }
dig_done:
e = 0;
if (c == 'e' || c == 'E') {