changeset 912:16264a3973bf

_d_delarray also had one of the array consistency asserts mentioned in #184 and dmd2632.
author Christian Kamm <kamm incasoftware de>
date Fri, 30 Jan 2009 07:51:50 +0100
parents 1d9fe5e2a13c
children 29c0d1194033
files runtime/internal/lifetime.d
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/internal/lifetime.d	Thu Jan 29 17:59:25 2009 +0100
+++ b/runtime/internal/lifetime.d	Fri Jan 30 07:51:50 2009 +0100
@@ -504,7 +504,9 @@
 {
 //     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);