Another fix for unsafe streams
This commit is contained in:
parent
0ca39dcd33
commit
5437bba3ce
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ template withReadableRange*(sp: InputStream|AsyncInputStream,
|
||||||
finally:
|
finally:
|
||||||
s.vtable = vtable
|
s.vtable = vtable
|
||||||
s.span.endAddr = origEndAddr
|
s.span.endAddr = origEndAddr
|
||||||
restoreEof(s.buffers, origEof)
|
if s.buffers != nil: restoreEof(s.buffers, origEof)
|
||||||
|
|
||||||
let fileInputVTable = InputStreamVTable(
|
let fileInputVTable = InputStreamVTable(
|
||||||
readSync: proc (s: InputStream, dst: pointer, dstLen: Natural): Natural
|
readSync: proc (s: InputStream, dst: pointer, dstLen: Natural): Natural
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue