Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-asprino committed Sep 16, 2024
1 parent 98b8064 commit 858672e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public synchronized int read() throws IOException {
}

if (result < -1) {
result += 256;
result = (byte) (result + 256);
}

return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void connect(OutputStream outputStream) {
@Override
public CharOutputSink process(String str) throws ParseException {
buffer.append(str);
bufferSize += str.length();
bufferSize = (short) (bufferSize + str.length());
writeBuffer();
return this;
}
Expand All @@ -119,7 +119,7 @@ public CharOutputSink process(char ch) throws ParseException {
@Override
public CharOutputSink process(char[] buffer, int start, int count) throws ParseException {
this.buffer.append(buffer, start, count);
bufferSize += count;
bufferSize = (short) (bufferSize + count);
writeBuffer();
return this;
}
Expand Down

0 comments on commit 858672e

Please sign in to comment.