diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-28 17:02:14 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-28 17:02:14 +0000 |
commit | e4bd9388493d480b446591a2154f4fa4974f0a4d (patch) | |
tree | a7d59cd133a2b4caa01d25481e0906b1c5787501 /io.c | |
parent | 1832751683251a82c7cc9efa4915f85d3943c9f6 (diff) | |
download | ruby-e4bd9388493d480b446591a2154f4fa4974f0a4d.tar.gz ruby-e4bd9388493d480b446591a2154f4fa4974f0a4d.tar.xz ruby-e4bd9388493d480b446591a2154f4fa4974f0a4d.zip |
don't use READ_DATA_PENDING in previous change
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -251,8 +251,7 @@ rb_io_check_writable(fptr) if (!(fptr->mode & FMODE_WRITABLE)) { rb_raise(rb_eIOError, "not opened for writing"); } - if ((fptr->mode & FMODE_RBUF) && !feof(fptr->f) && !fptr->f2 && - READ_DATA_PENDING(fptr->f)) { + if ((fptr->mode & FMODE_RBUF) && !feof(fptr->f) && !fptr->f2) { io_seek(fptr, 0, SEEK_CUR); } if (!fptr->f2) { |