diff --git a/src/dmd/root/rmem.d b/src/dmd/root/rmem.d index eb09a40adc62..fd7599c857ef 100644 --- a/src/dmd/root/rmem.d +++ b/src/dmd/root/rmem.d @@ -136,13 +136,13 @@ extern (C++) struct Mem _isGCEnabled = false; } - static void addRange(const(void)* p, size_t size) nothrow @nogc + static void addRange(void* p, size_t size) nothrow @nogc { if (isGCEnabled) GC.addRange(p, size); } - static void removeRange(const(void)* p) nothrow @nogc + static void removeRange(void* p) nothrow @nogc { if (isGCEnabled) GC.removeRange(p);