changeset 1827:e31051f17b9d

* lread.c (read1): Although digits followed by a '.' are an integer, a single . by itself (like, say, \.) should be a symbol.
author Jim Blandy <jimb@redhat.com>
date Fri, 29 Jan 1993 21:32:37 +0000
parents 6ca05c5f8979
children 1463592a6463
files src/lread.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Thu Jan 28 20:22:03 1993 +0000
+++ b/src/lread.c	Fri Jan 29 21:32:37 1993 +0000
@@ -1047,7 +1047,7 @@
 	      while (p1 != p && (c = *p1) >= '0' && c <= '9') p1++;
 #ifdef LISP_FLOAT_TYPE
 	      /* Integers can have trailing decimal points.  */
-	      if (p1 < p && *p1 == '.') p1++;
+	      if (p1 > read_buffer && p1 < p && *p1 == '.') p1++;
 #endif
 	      if (p1 == p)
 		/* It is an integer. */