[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections ArrayList.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections ArrayList.cs,1.7,1.8 Makefile,1.1.1.1,1.2 |
Date: |
Tue, 19 Nov 2002 00:48:16 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections
In directory subversions:/tmp/cvs-serv6317/runtime/System/Collections
Modified Files:
ArrayList.cs Makefile
Log Message:
Add test cases for ArrayList to the test suite, fix the "ArrayList.Add"
bug, and fix up a few other test suite issues.
Index: ArrayList.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections/ArrayList.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** ArrayList.cs 17 Nov 2002 09:21:14 -0000 1.7
--- ArrayList.cs 19 Nov 2002 05:48:13 -0000 1.8
***************
*** 90,96 ****
int newCapacity = (((count + n) + 31) &
~31);
Object[] newStore = new Object
[newCapacity];
! Array.Copy(store, 0, newStore, 0,
index);
! Array.Copy(store, index, newStore,
index + n,
! count - index);
store = newStore;
}
--- 90,102 ----
int newCapacity = (((count + n) + 31) &
~31);
Object[] newStore = new Object
[newCapacity];
! if(index != 0)
! {
! Array.Copy(store, 0, newStore,
0, index);
! }
! if(count != index)
! {
! Array.Copy(store, index,
newStore, index + n,
! count -
index);
! }
store = newStore;
}
Index: Makefile
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections/Makefile,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** Makefile 7 Aug 2001 22:51:44 -0000 1.1.1.1
--- Makefile 19 Nov 2002 05:48:13 -0000 1.2
***************
*** 3,5 ****
all:
! (cd ..;make)
--- 3,5 ----
all:
! (cd ../..;make)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections ArrayList.cs,1.7,1.8 Makefile,1.1.1.1,1.2,
Rhys Weatherley <address@hidden> <=