mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +01:00
java: fix Packer.packByte
This commit is contained in:
parent
ec8c19b1f0
commit
1fe35d7efe
@ -34,7 +34,7 @@ public class Packer {
|
||||
|
||||
public Packer packByte(byte d) throws IOException {
|
||||
if(d < -(1<<5)) {
|
||||
castBytes[0] = (byte)0xd1;
|
||||
castBytes[0] = (byte)0xd0;
|
||||
castBytes[1] = d;
|
||||
out.write(castBytes, 0, 2);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user