strtod.c (_strtod_r): Logic to check for missing digits after exponent had 'else' attached to wrong 'if'.

* strtod.c (_strtod_r):  Logic to check for missing digits
	after exponent had 'else' attached to wrong 'if'.

From-SVN: r46132
This commit is contained in:
Per Bothner 2001-10-09 15:54:26 -07:00 committed by Per Bothner
parent 19eb1ad779
commit d1d8ed9877
2 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2001-10-09 Per Bothner <per@bothner.com>
* strtod.c (_strtod_r): Logic to check for missing digits
after exponent had 'else' attached to wrong 'if'.
2001-10-09 Mark Wielaard <mark@klomp.org>
* java/net/SocketImpl.java: Merge with Classpath

View File

@ -242,16 +242,15 @@ dig_done:
if (esign)
e = -e;
}
else
{
/* No exponent after an 'E' : that's an error. */
ptr->_errno = EINVAL;
e = 0;
goto ret;
}
}
else
s = s00;
{
/* No exponent after an 'E' : that's an error. */
ptr->_errno = EINVAL;
e = 0;
s = s00;
goto ret;
}
}
if (!nd)
{