shithub: mc

Download patch

ref: 227ec97ff81695d94929daa0cd2cc354d980f677
parent: 678c33a804e63a185ea494957c8e1f365b361f9d
author: Ori Bernstein <[email protected]>
date: Wed Jun 25 21:00:42 EDT 2014

Fix slurp.

    Type mismatch after read.

    I need to audit for types and make it consistent. Maybe size
    should be signed?

--- a/libstd/slurp.myr
+++ b/libstd/slurp.myr
@@ -30,7 +30,7 @@
 		if n == 0
 			goto done
 		;;
-		len += n
+		len += n castto(size)
 		buf = slgrow(buf, len + Bufinc)
 	;;
 :done