Merge branch 'master' into better-async

This commit is contained in:
konsoletyper 2015-03-11 20:39:51 +03:00
commit 2ef8f9c0e8

View File

@ -36,7 +36,7 @@ public abstract class TInputStream extends TObject implements TCloseable {
for (int i = 0; i < len; ++i) {
int bt = read();
if (bt < 0) {
return i;
return i == 0 ? -1 : i;
}
b[off++] = (byte)bt;
}