aboutsummaryrefslogtreecommitdiffstats
path: root/src/io
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-24 17:02:58 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-24 17:02:58 +0100
commitdd2c0e4f501fcf860fe6b5eb67d14e07bbe43532 (patch)
tree82654be57aa104fccedf0178b50b4012e55bd324 /src/io
parent5d452786d9e012c77b2ab002da9d15bab2273f42 (diff)
downloadchawan-dd2c0e4f501fcf860fe6b5eb67d14e07bbe43532.tar.gz
buffer: fix clone
Diffstat (limited to 'src/io')
-rw-r--r--src/io/posixstream.nim6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/io/posixstream.nim b/src/io/posixstream.nim
index bdae9d50..bfd925f2 100644
--- a/src/io/posixstream.nim
+++ b/src/io/posixstream.nim
@@ -44,12 +44,6 @@ method recvData*(s: PosixStream, buffer: pointer, len: int): int =
proc sreadChar*(s: PosixStream): char =
let n = read(s.fd, addr result, 1)
- if n < 0:
- raisePosixIOError()
- if n == 0:
- if unlikely(s.isend):
- raise newException(EOFError, "eof")
- s.isend = true
assert n == 1
method sendData*(s: PosixStream, buffer: pointer, len: int): int =