CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnetlib
Branch:         
Changes by:     Gopal.V <[EMAIL PROTECTED]>     06/02/21 10:04:21

Modified files:
        .              : ChangeLog 
        runtime/System : Array.cs 
        runtime/System/Collections: ArrayList.cs 

Log message:
        Flip order of args for IComparer call to match behaviour

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/ChangeLog.diff?tr1=1.2358&tr2=1.2359&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/runtime/System/Array.cs.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/runtime/System/Collections/ArrayList.cs.diff?tr1=1.19&tr2=1.20&r1=text&r2=text

Patches:
Index: pnetlib/ChangeLog
diff -u pnetlib/ChangeLog:1.2358 pnetlib/ChangeLog:1.2359
--- pnetlib/ChangeLog:1.2358    Mon Feb 20 18:23:20 2006
+++ pnetlib/ChangeLog   Tue Feb 21 10:04:21 2006
@@ -1,3 +1,10 @@
+
+2006-02-21  Gopal V  <[EMAIL PROTECTED]>
+
+       * runtime/System/Array.cs, runtime/System/ArrayList.cs: call 
+       IComparer.Compare with (elem, value) so that the collection
+       element is always the first argument (thanks to Belial).
+
 2006-02-20  Heiko Weiss <[EMAIL PROTECTED]>
 
        * System.Drawing/Drawing2D/GraphicsPath.cs: changed handling of filling 
paths
Index: pnetlib/runtime/System/Array.cs
diff -u pnetlib/runtime/System/Array.cs:1.28 
pnetlib/runtime/System/Array.cs:1.29
--- pnetlib/runtime/System/Array.cs:1.28        Mon Nov 21 06:51:22 2005
+++ pnetlib/runtime/System/Array.cs     Tue Feb 21 10:04:21 2006
@@ -60,7 +60,7 @@
                        {
                                if(comparer != null)
                                {
-                                       cmp = comparer.Compare(value, elem);
+                                       cmp = comparer.Compare(elem, value);
                                }
                                else if((icmp = (elem as IComparable)) != null)
                                {
Index: pnetlib/runtime/System/Collections/ArrayList.cs
diff -u pnetlib/runtime/System/Collections/ArrayList.cs:1.19 
pnetlib/runtime/System/Collections/ArrayList.cs:1.20
--- pnetlib/runtime/System/Collections/ArrayList.cs:1.19        Mon Oct 11 
06:52:16 2004
+++ pnetlib/runtime/System/Collections/ArrayList.cs     Tue Feb 21 10:04:21 2006
@@ -377,7 +377,7 @@
                                        {
                                                if(comparer != null)
                                                {
-                                                       cmp = 
comparer.Compare(value, elem);
+                                                       cmp = 
comparer.Compare(elem, value);
                                                }
                                                else if((icmp = (elem as 
IComparable)) != null)
                                                {


_______________________________________________
dotgnu-pnet-commits mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet-commits

Reply via email to