diff dmd/File.d @ 189:a4c9de8e39b3

Now compileable with dmd2.053
author Abscissa
date Wed, 08 Jun 2011 02:21:32 -0400
parents 190ba98276b3
children
line wrap: on
line diff
--- a/dmd/File.d	Tue Jun 07 23:51:08 2011 -0400
+++ b/dmd/File.d	Wed Jun 08 02:21:32 2011 -0400
@@ -21,6 +21,7 @@
 
 import std.string : toStringz;
 import std.stdio;
+import std.conv;
 
 import core.memory;
 
@@ -255,7 +256,7 @@
 		int fd;
 		ssize_t numwritten;
 		const(char)* name = toStringz(this.name.toChars());
-		fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, 0644);
+		fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, std.conv.octal!644);
 		if (fd == -1)
 		goto err;