santiagopg    2002/08/23 12:20:54

  Modified:    java/src/org/apache/xalan/xsltc/compiler RelationalExpr.java
  Log:
  Fix for bugzilla 11987. Missing case in typeCheck() method.
  
  Revision  Changes    Path
  1.13      +5 -2      
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/RelationalExpr.java
  
  Index: RelationalExpr.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/RelationalExpr.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- RelationalExpr.java       1 Feb 2002 20:07:08 -0000       1.12
  +++ RelationalExpr.java       23 Aug 2002 19:20:53 -0000      1.13
  @@ -171,10 +171,13 @@
            if (tright instanceof NodeType) {
                _right = new CastExpr(_right, Type.NodeSet);
            }
  -
            // Promote integer to doubles to have fewer compares
            if (tright instanceof IntType) {
                _right = new CastExpr(_right, Type.Real);
  +         }
  +         // Promote result-trees to strings
  +         if (tright instanceof ResultTreeType) {
  +             _right = new CastExpr(_right, Type.String);
            }
            return _type = Type.Boolean;
        }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to