Decode side-band channel number as unsigned integer

This field is unsigned in the protocol, so treat it
as such when we report the channel number in errors.

Change-Id: I20a52809c7a756e9f66b3557a4300ae1e11f6d25
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2010-02-09 09:44:24 -08:00
parent f2dc9f0bfe
commit b7e8cefc92
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ private void needDataPacket() throws IOException {
return;
}
channel = rawIn.read();
channel = rawIn.read() & 0xff;
available -= HDR_SIZE; // length header plus channel indicator
if (available == 0)
continue;