switch from short to char to sidestep short java signage

This commit is contained in:
Jesse McConnell 2012-06-28 16:06:39 -05:00
parent 2c16fe552f
commit 03d37b58f2
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class CloseFrame extends ControlFrame
}
ByteBuffer payload = ByteBuffer.allocate(len);
payload.putShort((short)statusCode);
payload.putChar((char)statusCode);
if (utf != null)
{
payload.put(utf,0,utf.length);