shithub: mc

Download patch

ref: 7299ddc188ce7b861d6fba74cb7a27ba69bd40aa
parent: 6aa9d480a88e2ff2ba73ad61faa4d29bb3b4ab35
author: Ori Bernstein <[email protected]>
date: Wed Dec 18 08:30:25 EST 2013

Un-work around a compiler bug.

    We can now do increments in returns.

--- a/bio.myr
+++ b/bio.myr
@@ -219,11 +219,8 @@
 
 /* reads a single byte from the input stream */
 const getb = {f
-	var b
 	if ensureread(f, 1)
-		b = f.rbuf[f.rstart]
-		f.rstart++
-		-> b
+		-> f.rbuf[f.rstart++]
 	;;
 	-> -1
 }