Skip to content
Snippets Groups Projects
Unverified Commit ee1a8f1a authored by Drakeet's avatar Drakeet Committed by GitHub
Browse files

Fix invalid Char code exception for readLinePositions (#751)

parent a5c55de3
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment