diff src/print.c @ 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 f5f76ebe6286
children 507f64624555
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)