aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss/util/NumberComparer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/ss/util/NumberComparer.java')
-rw-r--r--src/java/org/apache/poi/ss/util/NumberComparer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ss/util/NumberComparer.java b/src/java/org/apache/poi/ss/util/NumberComparer.java
index 56648126e6..bf903ffa92 100644
--- a/src/java/org/apache/poi/ss/util/NumberComparer.java
+++ b/src/java/org/apache/poi/ss/util/NumberComparer.java
@@ -131,7 +131,7 @@ public final class NumberComparer {
* If both numbers are subnormal, Excel seems to use standard comparison rules
*/
private static int compareSubnormalNumbers(long fracA, long fracB, boolean isNegative) {
- int cmp = fracA > fracB ? +1 : fracA < fracB ? -1 : 0;
+ int cmp = Long.compare(fracA, fracB);
return isNegative ? -cmp : cmp;
}