diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-07 08:23:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-07 08:23:00 +0000 |
commit | a5c2f8843f0fb022e1bc33cad8d6d475958d2f83 (patch) | |
tree | 534ab41574c1463fe095a8012ef6521307a7e6d9 /io.c | |
parent | 5a12fb5fb87fe373ad251d68752388148c1363a3 (diff) | |
download | ruby-a5c2f8843f0fb022e1bc33cad8d6d475958d2f83.tar.gz |
* io.c (rb_io_tell): adjustment for ungotten data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1042,6 +1042,7 @@ rb_io_tell(VALUE io) GetOpenFile(io, fptr); pos = io_tell(fptr); if (pos < 0 && errno) rb_sys_fail_path(fptr->pathv); + pos -= fptr->rbuf_len; return OFFT2NUM(pos); } |