diff --git a/alloc.d b/alloc.d index e3354ab..45e0206 100644 --- a/alloc.d +++ b/alloc.d @@ -25,7 +25,7 @@ T[] MAllocArray(T)(u64 count) { void* mem = MemAlloc(T.sizeof * count); - return cast(T*)(mem)[0 .. count]; + return (cast(T*)mem)[0 .. count]; } void