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 /libjava/java | |
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
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/lang/strtod.c | 15 |
1 files changed, 7 insertions, 8 deletions
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) { |