end
var s = input.read_byte
- if s == null then
+ if s < 0 then
last_char = -1
return
end
if was_cr and last_char == '\n'.code_point then
# EOL already reported. => Skip this byte.
s = input.read_byte
- if s == null then
+ if s < 0 then
last_char = -1
else
- last_char = s.to_i
+ last_char = s
end
end
was_cr = last_char == '\r'.code_point