Mercurial > projects > dstress
diff addon/cpuinfo.d @ 1266:516e1eeceb04
array -> pointer isn't implicit anymore
author | thomask |
---|---|
date | Thu, 21 Dec 2006 15:11:45 +0000 |
parents | f34b7d4a2db7 |
children | 23fe17e22a63 |
line wrap: on
line diff
--- a/addon/cpuinfo.d Thu Dec 21 08:58:06 2006 +0000 +++ b/addon/cpuinfo.d Thu Dec 21 15:11:45 2006 +0000 @@ -187,7 +187,7 @@ template aligned_new(T){ T[] aligned_new(size_t len, size_t alignment){ - ubyte* ptr = new ubyte[len * T.sizeof + alignment]; + ubyte* ptr = (new ubyte[len * T.sizeof + alignment]).ptr; alignment *= 8;