diff --git a/std/experimental/allocator/gc_allocator.d b/std/experimental/allocator/gc_allocator.d index f3673e5549f..41894568f03 100644 --- a/std/experimental/allocator/gc_allocator.d +++ b/std/experimental/allocator/gc_allocator.d @@ -73,7 +73,7 @@ struct GCAllocator pure nothrow Ternary resolveInternalPointer(const void* p, ref void[] result) shared { - auto r = GC.addrOf(cast(void*)p); + auto r = GC.addrOf(cast(void*) p); if (!r) return Ternary.no; result = r[0 .. GC.sizeOf(r)]; return Ternary.yes;