summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-28 17:02:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-28 17:02:14 +0000
commit07899e989a05ac609ecbaba3943dd07716240df5 (patch)
treea7d59cd133a2b4caa01d25481e0906b1c5787501 /io.c
parent92cabdfde69f11e3eb805dfbd16512bd67792045 (diff)
don't use READ_DATA_PENDING in previous change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io.c b/io.c
index cc1b583955..1cce098221 100644
--- a/io.c
+++ b/io.c
@@ -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) {