Project

Profile

Help

Revision 5da58baf

Added by Michael Kay over 13 years ago

Fix bug 1986546 - incorrect type inference for min() and max()

View differences:

latest9.0/bj/net/sf/saxon/functions/Minimax.java
108 108
     */
109 109

  
110 110
    public ItemType getItemType(TypeHierarchy th) {
111
        ItemType t = argument[0].getItemType(th);
111
        ItemType t = Atomizer.getAtomizedItemType(argument[0], false, th);
112 112
        if (t.getPrimitiveType() == StandardNames.XS_UNTYPED_ATOMIC) {
113 113
            return BuiltInAtomicType.DOUBLE;
114 114
        } else {

Also available in: Unified diff