fix single-byte BufferedInputStream.read to generate unsigned result

This commit is contained in:
Joel Dice 2008-09-02 14:54:34 -06:00
parent e0e827596e
commit 27efbcf5e1

View File

@ -38,7 +38,7 @@ public class BufferedInputStream extends InputStream {
}
}
return buffer[position++];
return buffer[position++] & 0xFF;
}
public int read(byte[] b, int offset, int length) throws IOException {