Project

Profile

Help

Revision 00ccfaa0

Added by Michael Kay about 14 years ago

Outstanding fix to PositionRange

View differences:

latest8.9/bj/net/sf/saxon/expr/PositionRange.java
196 196
            }
197 197
        } else {
198 198
            NumericValue max = (NumericValue)maxPosition.evaluateItem(c);
199
            high = (int)max.longValue();
199
            high = (int)max.longValue(); // truncating towards zero is OK for the max
200 200
        }
201 201
        return PositionIterator.make(base, low, high);
202 202
    }

Also available in: Unified diff