Skip to content

Commit

Permalink
Fix invalid Char code exception for readLinePositions (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
drakeet authored Jun 8, 2021
1 parent a5c55de commit ee1a8f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private fun java.io.File.readLinePositions(
if (isBeginOfLine) {
starts.add(position.toInt())
}
isBeginOfLine = Char(byte.toInt()) == '\n'
isBeginOfLine = byte.toInt().toChar() == '\n'
position++
}
channel.close()
Expand Down

0 comments on commit ee1a8f1

Please sign in to comment.