summaryrefslogtreecommitdiff
path: root/lib/bio
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-29 22:51:55 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-29 22:51:55 -0800
commitbe21845c92abf4eb606116c760900105dc64816d (patch)
treef63947a8af034327633a346d3aec2098c7b7b4d3 /lib/bio
parentefb728382350bd8ee067cc1135b7e9f98581ca65 (diff)
downloadmc-be21845c92abf4eb606116c760900105dc64816d.tar.gz
Drop read buffer on seek.
Simple, easy, and absolutely not optimal.
Diffstat (limited to 'lib/bio')
-rw-r--r--lib/bio/bio.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bio/bio.myr b/lib/bio/bio.myr
index bbcaebb..87731dd 100644
--- a/lib/bio/bio.myr
+++ b/lib/bio/bio.myr
@@ -253,6 +253,7 @@ const flush = {f
const seek = {f, off
flush(f)
+ f.rstart = f.rend = 0
match std.seek(f.fd, off, std.Seekset)
| `std.Ok ret: -> `std.Ok ret
| `std.Fail e: -> `std.Fail errtype(e)