diff options
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/BufferedInputStream.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/io/BufferedInputStream.java b/libjava/java/io/BufferedInputStream.java index 17c570f104b..27fc4b7b49d 100644 --- a/libjava/java/io/BufferedInputStream.java +++ b/libjava/java/io/BufferedInputStream.java @@ -321,7 +321,7 @@ public class BufferedInputStream extends FilterInputStream if (n < origN) break; else - return -1; // No bytes were read before EOF. + return 0; // No bytes were read before EOF. int numread = (int) Math.min((long) (count - pos), n); pos += numread; |