diff options
| author | forsyth <forsyth@vitanuova.com> | 2009-07-28 17:44:25 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2009-07-28 17:44:25 +0100 |
| commit | c25d3f6db1487efc983a3301dadc677d4b1fdca2 (patch) | |
| tree | ef40576da56637db6d2ac299565a4d537af7804e /appl/lib/bufio.b | |
| parent | 560dc2e2a37e7e04e86569d3c540dc02d73e59a9 (diff) | |
20090728-1744
Diffstat (limited to 'appl/lib/bufio.b')
| -rw-r--r-- | appl/lib/bufio.b | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/appl/lib/bufio.b b/appl/lib/bufio.b index ab884649..e2ad8bae 100644 --- a/appl/lib/bufio.b +++ b/appl/lib/bufio.b @@ -171,12 +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) { - b.filpos = b.bufpos = big 0; + if ((s := sys->seek(b.fd, off, start)) < big 0) return big ERROR; - } b.bufpos = b.filpos = s; - return b.bufpos = b.filpos = s; + return s; } Iobuf.offset(b: self ref Iobuf): big |
