diff options
author | Elliott Hughes <enh@google.com> | 2013-05-13 13:32:03 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-05-13 13:32:03 -0700 |
commit | cbd61d6846af5d48fbb1c34b60a5c74a94f71901 (patch) | |
tree | ef2331685ab14ccc1ddb77921cdb562a10165736 /luni | |
parent | 52f836e8bf94a6e73373a3cb2c3fcc66d1122da6 (diff) | |
download | libcore-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.java | 2 |
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); } |