shithub: mc

Download patch

ref: f5ac096a0ffa146d382d6087c4132e32a52ec8e2
parent: d64acdc10550e55aea0ff8d149e4c9137fa991f4
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 30 16:12:17 EST 2015

libbio now has getbe32; use it.

--- a/deps.myr
+++ b/deps.myr
@@ -272,13 +272,13 @@
 }
 
 const rdstr = {f
-	var len : uint32
+	var len
 	var sl
 
-	match bio.getbe(f)
+	match bio.getbe32(f)
 	| `std.Some l:
 		len = l
-		sl = std.slalloc(len castto(std.size))
+		sl = std.slalloc(len)
 	| `std.None:	std.die("string length not readable")
 	;;
 	bio.read(f, sl)