diff options
Diffstat (limited to 'libjava/java/io/PipedWriter.java')
-rw-r--r-- | libjava/java/io/PipedWriter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/io/PipedWriter.java b/libjava/java/io/PipedWriter.java index ebcbde7..d5dd8bf 100644 --- a/libjava/java/io/PipedWriter.java +++ b/libjava/java/io/PipedWriter.java @@ -104,9 +104,9 @@ public class PipedWriter extends Writer * @exception IOException If the stream has not been connected or has * been closed. */ - public void write(char b) throws IOException + public void write(int b) throws IOException { - read_buf[0] = b; + read_buf[0] = (char) (b & 0xffff); sink.receive (read_buf, 0, 1); } |