changeset 3377:68cd0dabfce7

(float_to_string): Skip `-' like digits when ensuring result looks like a float.
author Richard M. Stallman <rms@gnu.org>
date Tue, 01 Jun 1993 03:33:40 +0000
parents 898d7a33c038
children cb9eb3e46e2c
files src/print.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/print.c	Tue Jun 01 03:24:24 1993 +0000
+++ b/src/print.c	Tue Jun 01 03:33:40 1993 +0000
@@ -653,7 +653,7 @@
   /* Make sure there is a decimal point with digit after, or an exponent,
      so that the value is readable as a float.  */
   for (cp = buf; *cp; cp++)
-    if (*cp < '0' || *cp > '9')
+    if ((*cp < '0' || *cp > '9') && *cp != '-')
       break;
 
   if (*cp == '.' && cp[1] == 0)