shithub: mc

Download patch

ref: ac02d84497997778d2c9680f5c7fc26b9814f62c
parent: 8fd9e2ceba598d96e07cfbf99674eb1ab025ee4f
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Feb 22 10:17:45 EST 2015

Update to new fmt() api.

--- a/bio.myr
+++ b/bio.myr
@@ -404,10 +404,10 @@
 */
 const put = {f, fmt, args
 	var buf : byte[2048]
-	var n
+	var sl
 
-	n = std.bfmt(buf[:], fmt, std.vastart(&args))
-	-> write(f, buf[:n])
+	sl = std.bfmt(buf[:], fmt, std.vastart(&args))
+	-> write(f, sl)
 }
 
 /*