File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
std/experimental/allocator/building_blocks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -647,7 +647,7 @@ fronting the GC allocator.
647
647
import std.experimental.allocator.gc_allocator : GCAllocator;
648
648
import std.typecons : Ternary;
649
649
// KRRegion fronting a general-purpose allocator
650
- ubyte [1024 * 128 ] buf;
650
+ align (KRRegion ! ().alignment) ubyte [1024 * 128 ] buf;
651
651
auto alloc = fallbackAllocator(KRRegion! ()(buf), GCAllocator.instance);
652
652
auto b = alloc.allocate(100 );
653
653
assert (b.length == 100 );
@@ -916,7 +916,7 @@ version (StdUnittest)
916
916
@system unittest
917
917
{ import std.typecons : Ternary;
918
918
919
- ubyte [1024 ] b;
919
+ align (KRRegion ! ().alignment) ubyte [1024 ] b;
920
920
auto alloc = KRRegion! ()(b);
921
921
922
922
auto k = alloc.allocate(128 );
You can’t perform that action at this time.
0 commit comments