summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2018-02-01 11:04:00 -0800
committerOri Bernstein <ori@markovcorp.com>2018-02-01 11:04:00 -0800
commita2653e75140890d3b29c1ff9f3abc2c281bda1d7 (patch)
tree36799dd63cf69c5691948dbb1c4c86f7f18f9006
parent5e2dccff3e46d063fed04109f5088c16002a56f5 (diff)
parent066812db79f10a3cdee5268ad7214bacb44d2eef (diff)
downloadmc-a2653e75140890d3b29c1ff9f3abc2c281bda1d7.tar.gz
Merge branch 'skiptoit' of https://github.com/moreais/mc
-rw-r--r--lib/bio/bio.myr6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bio/bio.myr b/lib/bio/bio.myr
index 1f44bf8..483662a 100644
--- a/lib/bio/bio.myr
+++ b/lib/bio/bio.myr
@@ -410,6 +410,8 @@ const readdelim = {f, delim, drop
| `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 @@ const readdelim = {f, delim, drop
;;
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 @@ const readdelim = {f, delim, drop
;;
if !drop
ret = readinto(f, ret, f.rend - f.rstart)
+ else
+ f.rstart += f.rend - f.rstart
;;
;;
std.die("unreachable")