diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lread.c b/src/lread.c index f07ec2dc780..0d7238ddf35 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -218,8 +218,12 @@ readchar (readcharfun) | |||
| 218 | readchar_backlog = bytepos - orig_bytepos; | 218 | readchar_backlog = bytepos - orig_bytepos; |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | return *(BUF_BEG_ADDR (inbuffer) + XMARKER (readcharfun)->bytepos | 221 | /* We get the address of the byte just passed, |
| 222 | - readchar_backlog--); | 222 | which is the last byte of the character. |
| 223 | The other bytes in this character are consecutive with it, | ||
| 224 | because the gap can't be in the middle of a character. */ | ||
| 225 | return *(BUF_BYTE_ADDRESS (inbuffer, XMARKER (readcharfun)->bytepos - 1) | ||
| 226 | - --readchar_backlog); | ||
| 223 | } | 227 | } |
| 224 | if (EQ (readcharfun, Qget_file_char)) | 228 | if (EQ (readcharfun, Qget_file_char)) |
| 225 | { | 229 | { |