modulecache 32 bit

cast needed, because on m32 ulong does not conv to uint automatically
This commit is contained in:
Robert Schadek 2014-03-05 13:00:47 +01:00
parent fc3ee906cb
commit 1dcc2ecfe2
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ struct ModuleCache
import std.stdio;
File f = File(location);
ubyte[] source = (cast(ubyte*) GC.malloc(cast(size_t) f.size,
GC.BlkAttr.NO_SCAN | GC.BlkAttr.NO_MOVE))[0 .. f.size];
GC.BlkAttr.NO_SCAN | GC.BlkAttr.NO_MOVE))[0 .. cast(size_t)f.size];
f.rawRead(source);
LexerConfig config;
config.fileName = location;