* strtod.c (_strtod_r): Logic to check for missing digits
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Oct 2001 22:54:26 +0000 (22:54 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Oct 2001 22:54:26 +0000 (22:54 +0000)
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

libjava/ChangeLog
libjava/java/lang/strtod.c

index 7027fa9..6807a7b 100644 (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
index e0e8e74..1777b1a 100644 (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)
     {