mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-11 06:57:33 +02:00
returning #<eof> for end of input on read-u8
This commit is contained in:
parent
6de7d5621d
commit
582a3295d4
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ sexp sexp_read_u8 (sexp ctx, sexp self, sexp in) {
|
|||
}
|
||||
#endif
|
||||
if (c == '\n') sexp_port_line(in)++;
|
||||
return sexp_make_fixnum(c);
|
||||
return (c==EOF) ? SEXP_EOF : sexp_make_fixnum(c);
|
||||
}
|
||||
|
||||
sexp sexp_peek_u8 (sexp ctx, sexp self, sexp in) {
|
||||
|
|
Loading…
Add table
Reference in a new issue