mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix IO#pos
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user