mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
I have no idea why the unittest works now, but okay
This commit is contained in:
parent
e0280ae2fc
commit
7caaa7838d
1 changed files with 3 additions and 3 deletions
|
@ -491,7 +491,7 @@ if (!is(immutable T == immutable bool))
|
||||||
// copy old data over to new array
|
// copy old data over to new array
|
||||||
memcpy(cast(void*) newPayload.ptr, cast(void*) _payload.ptr, T.sizeof * oldLength);
|
memcpy(cast(void*) newPayload.ptr, cast(void*) _payload.ptr, T.sizeof * oldLength);
|
||||||
// Zero out unused capacity to prevent gc from seeing false pointers
|
// Zero out unused capacity to prevent gc from seeing false pointers
|
||||||
memset(cast(void*) newPayload.ptr + oldLength,
|
memset( cast(void*) (newPayload.ptr + oldLength),
|
||||||
0,
|
0,
|
||||||
(elements - oldLength) * T.sizeof);
|
(elements - oldLength) * T.sizeof);
|
||||||
GC.addRange(cast(void*) newPayload.ptr, sz);
|
GC.addRange(cast(void*) newPayload.ptr, sz);
|
||||||
|
@ -1746,7 +1746,7 @@ if (!is(immutable T == immutable bool))
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://issues.dlang.org/show_bug.cgi?id=23140
|
// https://issues.dlang.org/show_bug.cgi?id=23140
|
||||||
/*@system unittest
|
@system unittest
|
||||||
{
|
{
|
||||||
shared class C
|
shared class C
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue