summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-28 14:14:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-28 14:14:11 +0000
commitaed6bddf4e79cdd14e82841d9b533d989d4f6f84 (patch)
tree09692f360f32ef7d36ba22a4008a9455829343d7 /io.c
parentb7d3ec8c24a4f450b8892e2a7021771548aa6b08 (diff)
downloadruby-aed6bddf4e79cdd14e82841d9b533d989d4f6f84.tar.gz
ruby-aed6bddf4e79cdd14e82841d9b533d989d4f6f84.tar.xz
ruby-aed6bddf4e79cdd14e82841d9b533d989d4f6f84.zip
* bignum.c (rb_big_and): protect parameters from GC.
[ruby-talk:110664] * error.c (exc_equal): exceptions are equal if they share same class, message and backtrace. [ruby-talk:110354] * error.c (name_err_mesg_equal): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/io.c b/io.c
index 45056040b..2c71a6d92 100644
--- a/io.c
+++ b/io.c
@@ -254,9 +254,6 @@ rb_io_check_writable(fptr)
if (!(fptr->mode & FMODE_WRITABLE)) {
rb_raise(rb_eIOError, "not opened for writing");
}
- if ((fptr->mode & FMODE_RBUF) && READ_DATA_BUFFERED(fptr->f)) {
- rb_warn("read buffer data lost");
- }
#if NEED_IO_SEEK_BETWEEN_RW
if ((fptr->mode & FMODE_RBUF) && !feof(fptr->f) && !fptr->f2) {
io_seek(fptr, 0, SEEK_CUR);