Author: zoltan
Date: 2005-05-05 10:28:52 -0400 (Thu, 05 May 2005)
New Revision: 44084
Modified:
trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
trunk/mcs/class/corlib/System.Collections.Generic/List.cs
Log:
2005-05-05 Zoltan Varga <[EMAIL PROTECTED]>
* List.cs: Applied patch from Mart Roosmaa ([EMAIL PROTECTED]).
Fix Insert method. Fixes #74824.
Modified: trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2005-05-05
14:14:57 UTC (rev 44083)
+++ trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2005-05-05
14:28:52 UTC (rev 44084)
@@ -1,3 +1,8 @@
+2005-05-05 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * List.cs: Applied patch from Mart Roosmaa ([EMAIL PROTECTED]).
+ Fix Insert method. Fixes #74824.
+
2005-04-29 Martin Baulig <[EMAIL PROTECTED]>
Reflect latest spec changes.
Modified: trunk/mcs/class/corlib/System.Collections.Generic/List.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/List.cs 2005-05-05
14:14:57 UTC (rev 44083)
+++ trunk/mcs/class/corlib/System.Collections.Generic/List.cs 2005-05-05
14:28:52 UTC (rev 44084)
@@ -273,8 +273,8 @@
public void Insert (int index, T item)
{
- if ((uint) index < (uint) size)
- throw new ArgumentOutOfRangeException ();
+ if ((uint) index > (uint) size)
+ throw new ArgumentOutOfRangeException ("index");
Shift (index, 1);
this [index] = item;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches