Skip to content
Snippets Groups Projects
Commit b7e8cefc authored by Shawn Pearce's avatar Shawn Pearce
Browse files

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: default avatarShawn O. Pearce <spearce@spearce.org>
parent f2dc9f0b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment