mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-18 05:43:14 +01:00
_d_delarray also had one of the array consistency asserts mentioned in #184
and dmd2632.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user