java: fix Packer.packByte

This commit is contained in:
frsyuki 2010-05-22 03:34:17 +09:00
parent ec8c19b1f0
commit 1fe35d7efe

View File

@ -34,7 +34,7 @@ public class Packer {
public Packer packByte(byte d) throws IOException { public Packer packByte(byte d) throws IOException {
if(d < -(1<<5)) { if(d < -(1<<5)) {
castBytes[0] = (byte)0xd1; castBytes[0] = (byte)0xd0;
castBytes[1] = d; castBytes[1] = d;
out.write(castBytes, 0, 2); out.write(castBytes, 0, 2);
} else { } else {