dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ./ChangeLog runtime/System/Array.cs run...


From: Gopal.V
Subject: [dotgnu-pnet-commits] pnetlib ./ChangeLog runtime/System/Array.cs run...
Date: Tue, 21 Feb 2006 10:04:21 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnetlib
Branch:         
Changes by:     Gopal.V <address@hidden>        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  <address@hidden>
+
+       * 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 <address@hidden>
 
        * 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)
                                                {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]