tabs to spaces

This commit is contained in:
Walter Bright 2010-05-22 21:04:09 +00:00
parent 42a496af51
commit 04e851716e
103 changed files with 24789 additions and 24786 deletions

View file

@ -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;
}