fixed bug in IO where the system was silently eating up any

remaining bytes while refilling a buffer.
This commit is contained in:
Abdulaziz Ghuloum 2008-06-08 06:19:29 -07:00
parent 1a5ab01e26
commit a0c8346840
2 changed files with 2 additions and 2 deletions

View File

@ -714,7 +714,7 @@
[(fx>= j 0)
(unless (fx<= j max)
(die who "read! returned a value out of range" j))
($set-port-index! p c0)
($set-port-index! p 0)
($set-port-size! p (fx+ c1 c0))
c1]
[else