[svn] r7290: nemerle/trunk/lib/narray.n
VladD2
svnadmin at nemerle.org
Thu Jan 18 17:59:22 CET 2007
Log:
Fix NArray.Append().
Author: VladD2
Date: Thu Jan 18 17:59:20 2007
New Revision: 7290
Modified:
nemerle/trunk/lib/narray.n
Modified: nemerle/trunk/lib/narray.n
==============================================================================
--- nemerle/trunk/lib/narray.n (original)
+++ nemerle/trunk/lib/narray.n Thu Jan 18 17:59:20 2007
@@ -390,8 +390,9 @@
public Append[T]([NotNull] mutable this source : array[T], [NotNull] value : array[T]) : array[T]
{
def newLen = source.Length + value.Length;
+ def insertIndex = source.Length;
System.Array.Resize(ref source, newLen);
- value.CopyTo(source, source.Length);
+ value.CopyTo(source, insertIndex);
source
}
More information about the svn
mailing list