Commit 5e43ddf5 authored by Jim Blandy's avatar Jim Blandy

* lread.c (read1): Although digits followed by a '.' are an

	integer, a single . by itself (like, say, \.) should be a symbol.
parent b5e6f936
......@@ -1047,7 +1047,7 @@ read1 (readcharfun)
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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment