Author: atsushi
Date: 2005-03-16 04:09:39 -0500 (Wed, 16 Mar 2005)
New Revision: 41874

Modified:
   trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
   trunk/mcs/class/System.XML/Mono.Xml.XPath/Pattern.cs
Log:
2004-03-16  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * Pattern.cs : fixed incorrect optimization.



Modified: trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog 2005-03-16 09:06:37 UTC 
(rev 41873)
+++ trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog 2005-03-16 09:09:39 UTC 
(rev 41874)
@@ -1,3 +1,7 @@
+2004-03-16  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * Pattern.cs : fixed incorrect optimization.
+
 2004-03-15  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * DTMXPathDocumentBuilder2.cs : skip only Read() internally called

Modified: trunk/mcs/class/System.XML/Mono.Xml.XPath/Pattern.cs
===================================================================
--- trunk/mcs/class/System.XML/Mono.Xml.XPath/Pattern.cs        2005-03-16 
09:06:37 UTC (rev 41873)
+++ trunk/mcs/class/System.XML/Mono.Xml.XPath/Pattern.cs        2005-03-16 
09:09:39 UTC (rev 41874)
@@ -81,8 +81,8 @@
                        
                        if (e is ExprSLASH2)
                        {
-                               if (((ExprSLASH2)e).right is ExprRoot)
-                                       return Compile (((ExprSLASH2)e).left);
+                               if (((ExprSLASH2)e).left is ExprRoot)
+                                       return Compile (((ExprSLASH2)e).right);
                                
                                Pattern p0 = Compile (((ExprSLASH2)e).left);
                                LocationPathPattern p1

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

Reply via email to