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,17 +242,16 @@ dig_done: ...@@ -242,17 +242,16 @@ dig_done:
if (esign) if (esign)
e = -e; e = -e;
} }
}
else else
{ {
/* No exponent after an 'E' : that's an error. */ /* No exponent after an 'E' : that's an error. */
ptr->_errno = EINVAL; ptr->_errno = EINVAL;
e = 0; e = 0;
s = s00;
goto ret; goto ret;
} }
} }
else
s = s00;
}
if (!nd) if (!nd)
{ {
if (!nz && !nz0) if (!nz && !nz0)
......
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