diff options
| -rw-r--r-- | appl/lib/bufio.b | 4 | ||||
| -rw-r--r-- | dis/lib/bufio.dis | bin | 4607 -> 4613 bytes |
2 files changed, 3 insertions, 1 deletions
diff --git a/appl/lib/bufio.b b/appl/lib/bufio.b index e2ad8bae..4de90919 100644 --- a/appl/lib/bufio.b +++ b/appl/lib/bufio.b @@ -171,8 +171,10 @@ Iobuf.seek(b: self ref Iobuf, off: big, start: int): big return big ERROR; b.size = 0; b.index = 0; - if ((s := sys->seek(b.fd, off, start)) < big 0) + if ((s := sys->seek(b.fd, off, start)) < big 0) { + b.bufpos = b.filpos; return big ERROR; + } b.bufpos = b.filpos = s; return s; } diff --git a/dis/lib/bufio.dis b/dis/lib/bufio.dis Binary files differindex dccad0fc..d5eefc3f 100644 --- a/dis/lib/bufio.dis +++ b/dis/lib/bufio.dis |
