Commit 52a0ad41 authored by dearblue's avatar dearblue

Fix `IO#pos`

parent 77368ce7
......@@ -150,7 +150,7 @@ class IO
def pos
raise IOError if closed?
sysseek(0, SEEK_CUR) - @buf.length
sysseek(0, SEEK_CUR) - @buf.bytesize
end
alias_method :tell, :pos
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment