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 | e10235bc331f6a04befc47dbb557852e463915f6 (patch) | |
| tree | 534ab41574c1463fe095a8012ef6521307a7e6d9 /io.c | |
| parent | 89802927cd394e29556ee2f7950696f8d1bae18f (diff) | |
| download | ruby-e10235bc331f6a04befc47dbb557852e463915f6.tar.gz ruby-e10235bc331f6a04befc47dbb557852e463915f6.tar.xz ruby-e10235bc331f6a04befc47dbb557852e463915f6.zip | |
* io.c (rb_io_tell): adjustment for ungotten data.
git-svn-id: http://svn.ruby-lang.org/repos/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); } |
