Fix IO#pos

This commit is contained in:
dearblue
2019-09-15 22:51:22 +09:00
parent 77368ce762
commit 52a0ad4108
+1 -1
View File
@@ -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