From 65415a15d54046808c27cb170377fc5f4fddb0a0 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 13 Jan 2015 14:03:05 +0100 Subject: [PATCH] fix, array length has to be of type size_t ...otherwise build fails on a 32 bit OS --- src/dfmt.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfmt.d b/src/dfmt.d index c1fb1fd..b897171 100644 --- a/src/dfmt.d +++ b/src/dfmt.d @@ -53,7 +53,7 @@ int main(string[] args) else { File f = File(args[1]); - buffer = new ubyte[](f.size); + buffer = new ubyte[](cast(size_t)f.size); f.rawRead(buffer); } LexerConfig config;