HibiParser bug
Created by: cole-dda
private void emitFrame() throws IOException{ if(opcode==OP_CLOSE){ int code = (payload.length >= 2) ? 256 * payload[0] + payload[1]; } }
java byte range = [-128,127],not [0-255],must convert:
int code = (payload.length >=2) ? 256 * (payload[0] < 0 ? 256 + payload[0] : payload[0]) + (payload[1] < 0 ? 256 + payload[1] : payload[1]) : 0;