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

Commit

Permalink
Merge pull request #314 from 9rnsr/fix7444
Browse files Browse the repository at this point in the history
Supplemental changes for Issue 7444 - Require [] for array copies too
  • Loading branch information
andralex committed Oct 15, 2012
2 parents 168c1ec + a77c827 commit be3a7fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rt/aaA.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/rt/arrayassign.d
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit be3a7fa

Please sign in to comment.