Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #314 from 9rnsr/fix7444

Supplemental changes for Issue 7444 - Require [] for array copies too
  • Loading branch information...
commit be3a7fa1bc726b453203c058ff2fa8c81dcfcab1 2 parents 168c1ec + a77c827
@andralex andralex authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  src/rt/aaA.d
  2. +2 −2 src/rt/arrayassign.d
View
2  src/rt/aaA.d
@@ -249,7 +249,7 @@ body
if (!aa.a)
{ aa.a = new BB();
- aa.a.b = aa.a.binit;
+ aa.a.b = aa.a.binit[];
}
//printf("aa = %p\n", aa);
//printf("aa.a = %p\n", aa.a);
View
4 src/rt/arrayassign.d
@@ -48,7 +48,7 @@ extern (C) void[] _d_arrayassign(TypeInfo ti, void[] from, void[] to)
if (element_size > buf.sizeof)
tmp = alloca(element_size)[0 .. element_size];
else
- tmp = buf;
+ tmp = buf[];
if (to.ptr <= from.ptr)
@@ -140,7 +140,7 @@ extern (C) void* _d_arraysetassign(void* p, void* value, int count, TypeInfo ti)
tmp = alloca(element_size)[0 .. element_size];
}
else
- tmp = buf;
+ tmp = buf[];
foreach (i; 0 .. count)
{
Please sign in to comment.
Something went wrong with that request. Please try again.