mirror of
https://github.com/dlang/phobos.git
synced 2025-05-13 07:39:15 +03:00
phobos 0.153
This commit is contained in:
parent
5611689b5d
commit
164dc8159b
30 changed files with 1035 additions and 386 deletions
|
@ -98,7 +98,9 @@ byte[] _d_arraycopy(uint size, byte[] from, byte[] 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(std.string.format("lengths don't match for array copy, %s = %s", to.length, from.length));
|
||||
throw new Error("lengths don't match for array copy," ~
|
||||
toString(to.length) ~ " = " ~ toString(from.length));
|
||||
}
|
||||
else if (cast(byte *)to + to.length * size <= cast(byte *)from ||
|
||||
cast(byte *)from + from.length * size <= cast(byte *)to)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue