diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-08 10:03:38 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-08 10:03:38 +0000 |
| commit | 814ce273620320e78bc12483879146e891c67296 (patch) | |
| tree | c6b89574bb4c790f7dfe64dd02267781ab933aca | |
| parent | 2b7c96968ed5e912aa67559fb56c9e36bb409fa1 (diff) | |
| download | ruby-814ce273620320e78bc12483879146e891c67296.tar.gz ruby-814ce273620320e78bc12483879146e891c67296.tar.xz ruby-814ce273620320e78bc12483879146e891c67296.zip | |
* io.c (rb_io_binmode): inverted condition. [ruby-dev:23349]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | io.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Apr 8 19:03:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (rb_io_binmode): inverted condition. [ruby-dev:23349] + Thu Apr 8 18:22:00 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/iconv/iconv.c (iconv_s_list): return encoding list if no block @@ -2150,7 +2150,7 @@ rb_io_binmode(io) OpenFile *fptr; GetOpenFile(io, fptr); - if ((fptr->mode & FMODE_BINMODE) && READ_DATA_BUFFERED(fptr->f)) { + if (!(fptr->mode & FMODE_BINMODE) && READ_DATA_BUFFERED(fptr->f)) { rb_raise(rb_eIOError, "buffer already filled with text-mode content"); } #ifdef __human68k__ |
