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;
|
import std.stdio;
|
||||||
File f = File(location);
|
File f = File(location);
|
||||||
ubyte[] source = (cast(ubyte*) GC.malloc(cast(size_t) f.size,
|
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);
|
f.rawRead(source);
|
||||||
LexerConfig config;
|
LexerConfig config;
|
||||||
config.fileName = location;
|
config.fileName = location;
|
||||||
|
|
Loading…
Reference in New Issue