Fixed a syntactically illegal LET.
This commit is contained in:
parent
2ecccd3546
commit
759e929fa8
18
scsh/rw.scm
18
scsh/rw.scm
|
@ -101,15 +101,15 @@
|
||||||
read-fdport*-substring!/errno
|
read-fdport*-substring!/errno
|
||||||
(extensible-port-local-data fd/port)))
|
(extensible-port-local-data fd/port)))
|
||||||
|
|
||||||
(else ; Hack it
|
;; Hack it
|
||||||
(let lp ((i start (+ i 1)))
|
(else (let lp ((i start))
|
||||||
(if (= i end) (- end start)
|
(if (= i end) (- end start)
|
||||||
(let ((c (read-char fd/port)))
|
(let ((c (read-char fd/port)))
|
||||||
(if (eof-object? c)
|
(if (eof-object? c)
|
||||||
(let ((nread (- i start)))
|
(let ((nread (- i start)))
|
||||||
(and (not (zero? nread)) nread))
|
(and (not (zero? nread)) nread))
|
||||||
(begin (string-set! s i c)
|
(begin (string-set! s i c)
|
||||||
(lp (+ i 1)))))))))))
|
(lp (+ i 1)))))))))))
|
||||||
|
|
||||||
(define (read-string len . maybe-fd/port)
|
(define (read-string len . maybe-fd/port)
|
||||||
(let* ((s (make-string len))
|
(let* ((s (make-string len))
|
||||||
|
|
Loading…
Reference in New Issue