MmapPool: (p[] is null) != (p[].ptr is null)
This commit is contained in:
@ -156,7 +156,7 @@ final class MmapPool : Allocator
|
||||
*/
|
||||
bool deallocate(void[] p) shared nothrow @nogc
|
||||
{
|
||||
if (p is null)
|
||||
if (p.ptr is null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user