shithub: mc

Download patch

ref: c8604d93bbfcf27599c6936e80e04261eff73a9e
parent: a091675111887e72d0c910c8d64d97c1b5ae72a5
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