# HG changeset patch # User Richard M. Stallman # Date 738905620 0 # Node ID 68cd0dabfce79480ed927c594829fd962d94b6d7 # Parent 898d7a33c038ef0918e1ed789896e53a9810e799 (float_to_string): Skip `-' like digits when ensuring result looks like a float. diff -r 898d7a33c038 -r 68cd0dabfce7 src/print.c --- 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)