Skip to content

Commit

Permalink
Fix char peek on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 17, 2018
1 parent b15a992 commit 0bb16a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected synchronized int read(long timeout, boolean isPeek) throws IOException
// Blocks until more input is available or the reader is closed.
int res = wait(readBuffer, timeout);
if (res >= 0) {
res = readBuffer.get();
res = isPeek ? readBuffer.get(readBuffer.position()) : readBuffer.get();
}
rewind(readBuffer, writeBuffer);
return res;
Expand Down

0 comments on commit 0bb16a6

Please sign in to comment.