mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-24 00:33:12 +01:00
Remove asserts on array consistancy in arraysetlength. Fixes #184, thanks Deewiant.
This commit is contained in:
@@ -607,7 +607,9 @@ extern (C) byte* _d_arraysetlengthT(TypeInfo ti, size_t newlength, size_t plengt
|
||||
in
|
||||
{
|
||||
assert(ti);
|
||||
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);
|
||||
}
|
||||
body
|
||||
{
|
||||
@@ -698,7 +700,9 @@ Loverflow:
|
||||
extern (C) byte* _d_arraysetlengthiT(TypeInfo ti, size_t newlength, size_t plength, byte* pdata)
|
||||
in
|
||||
{
|
||||
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);
|
||||
}
|
||||
body
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user