Skip to content

Commit 382845b

Browse files
committed
Fixed: asShort in LongValueImpl should check isInShortRange instead of isInByteRange
1 parent e40d59f commit 382845b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack-core/src/main/java/org/msgpack/value/impl/ImmutableLongValueImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public byte asByte()
158158
@Override
159159
public short asShort()
160160
{
161-
if (!isInByteRange()) {
161+
if (!isInShortRange()) {
162162
throw new MessageIntegerOverflowException(value);
163163
}
164164
return (short) value;

0 commit comments

Comments
 (0)