summaryrefslogtreecommitdiff
path: root/libstd/blat.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-09-29 13:58:02 -0400
committerOri Bernstein <ori@eigenstate.org>2014-09-29 13:58:02 -0400
commit348a8d66a5282e2738bdc44f7c12ac8900d8e31e (patch)
treea8bcdff71a9bd59181e1b760b0417a2927a6943e /libstd/blat.myr
parentc92d7552d23497a2e5d6d813e8ed35c612c7dcb3 (diff)
downloadmc-348a8d66a5282e2738bdc44f7c12ac8900d8e31e.tar.gz
Fix compilation.
We shouldn't jump to a nonexistent label.
Diffstat (limited to 'libstd/blat.myr')
-rw-r--r--libstd/blat.myr4
1 files changed, 1 insertions, 3 deletions
diff --git a/libstd/blat.myr b/libstd/blat.myr
index 12f6979..a7dd09c 100644
--- a/libstd/blat.myr
+++ b/libstd/blat.myr
@@ -23,10 +23,8 @@ const fblat = {fd, buf
n = 0
while true
written = write(fd, buf[n:])
- if written == 0
+ if written <= 0
goto done
- elif written < 0
- goto fail
;;
n += written
;;