Skip to content

Commit 4d7a9a8

Browse files
committed
Merge pull request msgpack#72 from oza/71
Fix BigIntegerAccept to read byte/short values correctly
2 parents 09d2098 + e37e03a commit 4d7a9a8

File tree

2 files changed

+295
-293
lines changed

2 files changed

+295
-293
lines changed

src/main/java/org/msgpack/unpacker/BigIntegerAccept.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ void acceptInteger(long v) {
4848

4949
@Override
5050
void acceptUnsignedInteger(byte v) {
51-
BigInteger.valueOf((long) (v & 0xff));
51+
this.value = BigInteger.valueOf((long) (v & 0xff));
5252
}
5353

5454
@Override
5555
void acceptUnsignedInteger(short v) {
56-
BigInteger.valueOf((long) (v & 0xffff));
56+
this.value = BigInteger.valueOf((long) (v & 0xffff));
5757
}
5858

5959
@Override

0 commit comments

Comments
 (0)