Mercurial > projects > dstress
changeset 1266:516e1eeceb04
array -> pointer isn't implicit anymore
author | thomask |
---|---|
date | Thu, 21 Dec 2006 15:11:45 +0000 |
parents | 236f0d02b8b9 |
children | 409746d4e240 |
files | addon/cpuinfo.d |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;