changeset 21911:8087931b409e

(isfloat_string): Don't look at bytes before the string.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 May 1998 00:50:06 +0000
parents 702383d93b75
children f485fe3e433e
files src/lread.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Sun May 03 00:02:10 1998 +0000
+++ b/src/lread.c	Sun May 03 00:50:06 1998 +0000
@@ -1995,6 +1995,8 @@
 {
   register int state;
   
+  char *start = cp;
+
   state = 0;
   if (*cp == '+' || *cp == '-')
     cp++;
@@ -2030,6 +2032,8 @@
       while (*cp >= '0' && *cp <= '9')
 	cp++;
     }
+  else if (cp == start)
+    ;
   else if (cp[-1] == '+' && cp[0] == 'I' && cp[1] == 'N' && cp[2] == 'F')
     {
       state |= EXP_INT;