diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-09 22:54:26 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-09 22:54:26 +0000 |
commit | fad65b74b671eb6b85db4f828eb11f5aee7dcc27 (patch) | |
tree | 69aee7ed4d716858a6a27b2cb62febeea4dec0aa | |
parent | ab6d34f74d478967d457be3498f798a07cb7bd41 (diff) | |
download | gcc-fad65b74b671eb6b85db4f828eb11f5aee7dcc27.tar.gz |
* strtod.c (_strtod_r): Logic to check for missing digits
after exponent had 'else' attached to wrong 'if'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46132 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/lang/strtod.c | 15 |
2 files changed, 12 insertions, 8 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 7027fa9b0bc..6807a7b0fff 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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 diff --git a/libjava/java/lang/strtod.c b/libjava/java/lang/strtod.c index e0e8e74828b..1777b1aae8a 100644 --- a/libjava/java/lang/strtod.c +++ b/libjava/java/lang/strtod.c @@ -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) { |