diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-12-29 22:51:55 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-12-29 22:51:55 -0800 |
commit | be21845c92abf4eb606116c760900105dc64816d (patch) | |
tree | f63947a8af034327633a346d3aec2098c7b7b4d3 /lib/bio | |
parent | efb728382350bd8ee067cc1135b7e9f98581ca65 (diff) | |
download | mc-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.myr | 1 |
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) |