Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 3fd5df3

Browse files
committed
object.d: Fixup _d_arraysetcapacity() signature according to rt.lifetime
1 parent c261b6e commit 3fd5df3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/object.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,7 +3109,7 @@ version (unittest)
31093109
private
31103110
{
31113111
extern (C) void _d_arrayshrinkfit(const TypeInfo ti, void[] arr) nothrow;
3112-
extern (C) size_t _d_arraysetcapacity(const TypeInfo ti, size_t newcapacity, void *arrptr) pure nothrow;
3112+
extern (C) size_t _d_arraysetcapacity(const TypeInfo ti, size_t newcapacity, void[]* arrptr) pure nothrow;
31133113
}
31143114

31153115
/**
@@ -3125,7 +3125,7 @@ private
31253125
*/
31263126
@property size_t capacity(T)(T[] arr) pure nothrow @trusted
31273127
{
3128-
return _d_arraysetcapacity(typeid(T[]), 0, cast(void *)&arr);
3128+
return _d_arraysetcapacity(typeid(T[]), 0, cast(void[]*)&arr);
31293129
}
31303130
///
31313131
@safe unittest
@@ -3160,7 +3160,7 @@ private
31603160
*/
31613161
size_t reserve(T)(ref T[] arr, size_t newcapacity) pure nothrow @trusted
31623162
{
3163-
return _d_arraysetcapacity(typeid(T[]), newcapacity, cast(void *)&arr);
3163+
return _d_arraysetcapacity(typeid(T[]), newcapacity, cast(void[]*)&arr);
31643164
}
31653165
///
31663166
unittest

0 commit comments

Comments
 (0)