You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/10/17 15:44:25 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/dom NodeSortRecord.java
morten 01/10/17 06:44:25
Modified: java/src/org/apache/xalan/xsltc/dom NodeSortRecord.java
Log:
Changed the node sort record base class so that it places NaN values first
in the sorted list/node-set.
PR: bugzilla 3517
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.5 +2 -2 xml-xalan/java/src/org/apache/xalan/xsltc/dom/NodeSortRecord.java
Index: NodeSortRecord.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/NodeSortRecord.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- NodeSortRecord.java 2001/09/25 19:06:43 1.4
+++ NodeSortRecord.java 2001/10/17 13:44:25 1.5
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: NodeSortRecord.java,v 1.4 2001/09/25 19:06:43 morten Exp $
+ * @(#)$Id: NodeSortRecord.java,v 1.5 2001/10/17 13:44:25 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -168,7 +168,7 @@
}
// Treat number as NaN if it cannot be parsed as a double
catch (NumberFormatException e) {
- num = new Double(Double.POSITIVE_INFINITY);
+ num = new Double(Double.NEGATIVE_INFINITY);
}
_values[_scanned++] = num;
return(num);
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org