Commit d1d8ed98 by Per Bothner Committed by Per Bothner

strtod.c (_strtod_r): Logic to check for missing digits after exponent had…

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
parent 19eb1ad7
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> 2001-10-09 Mark Wielaard <mark@klomp.org>
* java/net/SocketImpl.java: Merge with Classpath * java/net/SocketImpl.java: Merge with Classpath
......
...@@ -242,16 +242,15 @@ dig_done: ...@@ -242,16 +242,15 @@ dig_done:
if (esign) if (esign)
e = -e; e = -e;
} }
else
{
/* No exponent after an 'E' : that's an error. */
ptr->_errno = EINVAL;
e = 0;
goto ret;
}
} }
else else
s = s00; {
/* No exponent after an 'E' : that's an error. */
ptr->_errno = EINVAL;
e = 0;
s = s00;
goto ret;
}
} }
if (!nd) if (!nd)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment