From 06615791bcd20ed0edba68869babf76c22787caf Mon Sep 17 00:00:00 2001 From: Teodor Dutu Date: Mon, 11 Oct 2021 13:15:39 +0300 Subject: [PATCH] Use workaround until issue 22372 is fixed Signed-off-by: Teodor Dutu --- src/core/internal/array/construction.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/internal/array/construction.d b/src/core/internal/array/construction.d index 385eebc7fb..a31c1c3012 100644 --- a/src/core/internal/array/construction.d +++ b/src/core/internal/array/construction.d @@ -45,7 +45,9 @@ Tarr _d_arrayctor(Tarr : T[], T)(return scope Tarr to, scope Tarr from) @trusted static if (hasElaborateCopyConstructor!T) { - size_t i; + // Use uint instead of size_t as a temporary workaround until this bug is fixed: + // https://issues.dlang.org/show_bug.cgi?id=22372 + uint i; try { for (i = 0; i < to.length; i++)