mirror of
https://github.com/dlang/phobos.git
synced 2025-05-14 17:05:58 +03:00
tabs to spaces
This commit is contained in:
parent
42a496af51
commit
04e851716e
103 changed files with 24789 additions and 24786 deletions
|
@ -21,20 +21,20 @@ void[] _d_arraycopy(uint size, void[] from, void[] to)
|
|||
|
||||
if (to.length != from.length)
|
||||
{
|
||||
//throw new Error(std.string.format("lengths don't match for array copy, %s = %s", to.length, from.length));
|
||||
throw new Error(cast(string) ("lengths don't match for array copy," ~
|
||||
//throw new Error(std.string.format("lengths don't match for array copy, %s = %s", to.length, from.length));
|
||||
throw new Error(cast(string) ("lengths don't match for array copy," ~
|
||||
toString(to.length) ~ " = "
|
||||
~ toString(from.length)));
|
||||
}
|
||||
else if (to.ptr + to.length * size <= from.ptr ||
|
||||
from.ptr + from.length * size <= to.ptr)
|
||||
from.ptr + from.length * size <= to.ptr)
|
||||
{
|
||||
memcpy(to.ptr, from.ptr, to.length * size);
|
||||
memcpy(to.ptr, from.ptr, to.length * size);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Error("overlapping array copy");
|
||||
//memmove(to.ptr, from.ptr, to.length * size);
|
||||
throw new Error("overlapping array copy");
|
||||
//memmove(to.ptr, from.ptr, to.length * size);
|
||||
}
|
||||
return to;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue