diff --git a/modulecache.d b/modulecache.d index 64c1a3a..b7a9946 100644 --- a/modulecache.d +++ b/modulecache.d @@ -26,6 +26,7 @@ import stdx.d.ast; import std.stdio; import std.array; import std.path; +import std.algorithm; import std.conv; import acvisitor; @@ -87,7 +88,7 @@ struct ModuleCache try { File f = File(location); - ubyte[] source = uninitializedArray!(ubyte[])(to!size_t(f.size)); + ubyte[] source = uninitializedArray!(ubyte[])(f.size); f.rawRead(source); LexerConfig config;