mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-06 20:56:38 +02:00
Fixing source line miscalculation in read-line for non-string-stream builds.
This commit is contained in:
parent
3193dcb650
commit
43b6f6496a
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@
|
|||
(let ((in (if (pair? o) (car o) (current-input-port)))
|
||||
(n (if (and (pair? o) (pair? (cdr o))) (car (cdr o)) 8192)))
|
||||
(let ((res (%read-line n in)))
|
||||
(port-line-set! in (+ 1 (port-line in)))
|
||||
(cond-expand
|
||||
(string-streams
|
||||
(port-line-set! in (+ 1 (port-line in)))))
|
||||
(if (not res)
|
||||
eof
|
||||
(let ((len (string-length res)))
|
||||
|
|
Loading…
Add table
Reference in a new issue