ref: a2653e75140890d3b29c1ff9f3abc2c281bda1d7
parent: 5e2dccff3e46d063fed04109f5088c16002a56f5
parent: 066812db79f10a3cdee5268ad7214bacb44d2eef
author: Ori Bernstein <ori@markovcorp.com>
date: Thu Feb 1 06:04:00 EST 2018
Merge branch 'skiptoit' of https://github.com/moreais/mc
--- a/lib/bio/bio.myr
+++ b/lib/bio/bio.myr
@@ -410,6 +410,8 @@
| `std.Err `Eof:
if !drop
ret = readinto(f, ret, f.rend - f.rstart)
+ else
+ f.rstart += f.rend - f.rstart
;;
if ret.len > 0
-> `std.Ok ret
@@ -428,6 +430,8 @@
;;
if !drop
ret = readinto(f, ret, i - f.rstart)
+ else
+ f.rstart += i - f.rstart
;;
f.rstart += delim.len
-> `std.Ok ret
@@ -436,6 +440,8 @@
;;
if !drop
ret = readinto(f, ret, f.rend - f.rstart)
+ else
+ f.rstart += f.rend - f.rstart
;;
;;
std.die("unreachable")