Fix missing alignment for kernighan_ritchie allocator unittests

This commit is contained in:
Martin 2017-04-23 04:47:21 +02:00
parent d0bb8bbff7
commit 68b51e7a81

View file

@ -811,7 +811,7 @@ it actually returns memory to the operating system when possible.
void test(int[] sizes)
{
ubyte[256 * 1024] buf;
align(size_t.sizeof) ubyte[256 * 1024] buf;
auto a = KRRegion!()(buf);
void[][] bufs;
@ -853,7 +853,7 @@ it actually returns memory to the operating system when possible.
void test(int[] sizes, int word)
{
ubyte[256 * 1024] buf;
align(size_t.sizeof) ubyte[256 * 1024] buf;
auto a = KRRegion!()(buf);
void[][] bufs;