_d_delarray also had one of the array consistency asserts mentioned in #184

and dmd2632.
This commit is contained in:
Christian Kamm
2009-01-30 07:51:50 +01:00
parent d3f44831dc
commit 07649678db

View File

@@ -504,7 +504,9 @@ extern (C) void _d_delarray(size_t plength, void* pdata)
{
// if (p)
// {
assert(!plength || pdata);
// This assert on array consistency may fail with casts or in unions.
// This function still does something sensible even if plength && !pdata.
// assert(!plength || pdata);
if (pdata)
gc_free(pdata);