Project

Profile

Help

Revision 7fe5f299

Added by Michael Kay about 14 years ago

Fix bug 1791958: xs:positiveInteger($n) castable as xs:positiveInteger

View differences:

latest8.9/bj/net/sf/saxon/expr/CastableExpression.java
85 85

  
86 86
        final TypeHierarchy th = env.getConfiguration().getTypeHierarchy();
87 87
        if (!CastExpression.isPossibleCast(
88
                operand.getItemType(th).getAtomizedItemType().getFingerprint(),
88
                operand.getItemType(th).getAtomizedItemType().getPrimitiveType(),
89 89
                targetType.getPrimitiveType())) {
90 90
            return Literal.makeLiteral(BooleanValue.FALSE);
91 91
        }

Also available in: Unified diff