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

Commit 578fce9

Browse files
teodutudlang-bot
authored andcommitted
Use workaround until issue 22372 is fixed
Signed-off-by: Teodor Dutu <[email protected]>
1 parent 3a6e239 commit 578fce9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/internal/array/construction.d

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ Tarr _d_arrayctor(Tarr : T[], T)(return scope Tarr to, scope Tarr from) @trusted
4545

4646
static if (hasElaborateCopyConstructor!T)
4747
{
48-
size_t i;
48+
// Use uint instead of size_t as a temporary workaround until this bug is fixed:
49+
// https://issues.dlang.org/show_bug.cgi?id=22372
50+
uint i;
4951
try
5052
{
5153
for (i = 0; i < to.length; i++)

0 commit comments

Comments
 (0)