shithub: mc

Download patch

ref: 6c8f9384b71cf67e05d77f5bbafa9c201d9fedb2
parent: 5aaa3475118b9f72db2b02760f8fe5009aacefc2
author: Ori Bernstein <[email protected]>
date: Tue Aug 19 06:10:41 EDT 2014

Harmonize types.

    Now they all sing at the same pitch. Oh, and the compiler
    accepts them without type mismatches.

--- a/libstd/dir-osx.myr
+++ b/libstd/dir-osx.myr
@@ -12,7 +12,7 @@
 		fd	: fd
 		buf	: byte[16384]
 		len	: int64
-		off	: uint64
+		off	: int64
 		base	: int64
 	;;
 
@@ -37,7 +37,6 @@
 const dirread = {d
 	var len
 	var dent
-	var namelen
 
 	if d.off >= d.len
 		len = getdirentries64(d.fd, d.buf[:], &d.base)