summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-05-13 13:32:03 -0700
committerElliott Hughes <enh@google.com>2013-05-13 13:32:03 -0700
commitcbd61d6846af5d48fbb1c34b60a5c74a94f71901 (patch)
treeef2331685ab14ccc1ddb77921cdb562a10165736 /luni
parent52f836e8bf94a6e73373a3cb2c3fcc66d1122da6 (diff)
downloadlibcore-cbd61d6846af5d48fbb1c34b60a5c74a94f71901.zip
libcore-cbd61d6846af5d48fbb1c34b60a5c74a94f71901.tar.gz
libcore-cbd61d6846af5d48fbb1c34b60a5c74a94f71901.tar.bz2
Fix Short.compare.
Bug: 3484927 Change-Id: I53fbed8d7060556ade960174d567e975ebc70928
Diffstat (limited to 'luni')
-rw-r--r--luni/src/main/java/java/lang/Short.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/java/java/lang/Short.java b/luni/src/main/java/java/lang/Short.java
index 1101805..e07b568 100644
--- a/luni/src/main/java/java/lang/Short.java
+++ b/luni/src/main/java/java/lang/Short.java
@@ -114,7 +114,7 @@ public final class Short extends Number implements Comparable<Short> {
* @since 1.7
* @hide 1.7
*/
- public static int compare(long lhs, long rhs) {
+ public static int compare(short lhs, short rhs) {
return lhs > rhs ? 1 : (lhs < rhs ? -1 : 0);
}