modulecache 32 bit
cast needed, because on m32 ulong does not conv to uint automatically
This commit is contained in:
parent
fc3ee906cb
commit
1dcc2ecfe2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue