commit | 8edae3dfd3f594ca1b24c8365561f1f8c059440e | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Thu Jun 18 16:23:15 2009 -0700 |
committer | Nick Pelly <npelly@google.com> | Thu Jun 18 16:25:47 2009 -0700 |
tree | 1f162cf50e372393552dcf68d1cd8f494c37ff91 | |
parent | e4839c4325e61ee23adf3fef1bf651f4754bbfec [diff] |
Fix bug in BluetoothInputStream.read(). InputStream.read() must return values in range [0, 255]. But the previous code would sign extend when casting to int so return [-128, 127]. Bitwise AND with 0xff to remove sign extension.