Author: alanmc
Date: 2007-03-27 09:05:34 -0500 (Tue, 27 Mar 2007)
New Revision: 75017

Modified:
   trunk/mcs/class/System/System.Collections.Specialized/BitVector32.cs
   trunk/mcs/class/System/System.Collections.Specialized/ChangeLog
Log:
Should've used "or" not "and" in the inequality test.

Modified: trunk/mcs/class/System/System.Collections.Specialized/BitVector32.cs
===================================================================
--- trunk/mcs/class/System/System.Collections.Specialized/BitVector32.cs        
2007-03-27 14:03:31 UTC (rev 75016)
+++ trunk/mcs/class/System/System.Collections.Specialized/BitVector32.cs        
2007-03-27 14:05:34 UTC (rev 75017)
@@ -62,7 +62,7 @@
 
                        public static bool operator != (Section v1, Section v2)
                        {
-                               return v1.mask != v2.mask &&
+                               return v1.mask != v2.mask ||
                                       v1.offset != v2.offset;
                        }
 

Modified: trunk/mcs/class/System/System.Collections.Specialized/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Collections.Specialized/ChangeLog     
2007-03-27 14:03:31 UTC (rev 75016)
+++ trunk/mcs/class/System/System.Collections.Specialized/ChangeLog     
2007-03-27 14:05:34 UTC (rev 75017)
@@ -1,3 +1,7 @@
+2007-03-27  Alan McGovern  <[EMAIL PROTECTED]>
+
+       * BitVector32.cs: Bugfix for op_inequality.
+
 2007-01-18  Konstantin Triger  <[EMAIL PROTECTED]>
 
        * OrderedDictionary.cs: use IEqualityComparer for key comparison.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to