diff dmd/File.d @ 183:190ba98276b3

Several changes to make it build on posix systems. I've only tried to build on Mac OS X but it should build on Linux now as well. This should also fix ticket #9.
author Jacob Carlborg <doob@me.com>
date Mon, 25 Oct 2010 15:36:13 +0200
parents e3afd1303184
children a4c9de8e39b3
line wrap: on
line diff
--- a/dmd/File.d	Mon Oct 18 00:36:44 2010 +0400
+++ b/dmd/File.d	Mon Oct 25 15:36:13 2010 +0200
@@ -111,7 +111,7 @@
 			goto err2;
 		}
 
-		off_t size = buf.st_size;
+		size_t size = cast(size_t) buf.st_size;
 		buffer = cast(ubyte*)GC.malloc(size + 2);
 		if (buffer is null) {
 			printf("\tmalloc error, errno = %d\n", errno);