From b632fa48b14ac7a968b9ca77ee1c0ef64d50729d Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sat, 18 Mar 2000 01:04:28 +0000 Subject: [PATCH] (read_integer): Unread the last char not consumed. --- src/lread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lread.c b/src/lread.c index 14c6f608b86..7e4f3d2f109 100644 --- a/src/lread.c +++ b/src/lread.c @@ -1637,7 +1637,10 @@ read_integer (readcharfun, radix) else if (c >= 'A' && c <= 'Z') digit = c - 'A' + 10; else - break; + { + UNREAD (c); + break; + } if (digit < 0 || digit >= radix) invalid_p = 1; -- 2.39.5