]> git.eshelyaron.com Git - emacs.git/commitdiff
(read_integer): Unread the last char not consumed.
authorGerd Moellmann <gerd@gnu.org>
Sat, 18 Mar 2000 01:04:28 +0000 (01:04 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 18 Mar 2000 01:04:28 +0000 (01:04 +0000)
src/lread.c

index 14c6f608b869cc93c75054afb10fdb18c9edfc37..7e4f3d2f109b250b7394c52c33ebba9dcc99aa3b 100644 (file)
@@ -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;