diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-03-30 09:32:56 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-03-30 09:32:56 +0000 |
commit | 1dd17757b547dbc056faa42e13fd3e1fd711a608 (patch) | |
tree | a5be8dbddace6615325aa7034305eea807ff6086 /io.c | |
parent | 1234770ca21f8bd9586b6c932fdb2cd2b0b2271b (diff) |
gw32 b19 patch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -160,7 +160,7 @@ io_write(io, str) #ifdef __human68k__ { register UCHAR *ptr = RSTRING(str)->ptr; - n = (int) RSTRING(str)->len; + n = (int)RSTRING(str)->len; while (--n >= 0) if (fputc(*ptr++, f) == EOF) rb_sys_fail(fptr->path); @@ -809,7 +809,7 @@ io_binmode(io) #ifdef __human68k__ if (fptr->f) fmode(fptr->f, _IOBIN); - if (fptr->f2); + if (fptr->f2) fmode(fptr->f2, _IOBIN); #else if (fptr->f && setmode(fileno(fptr->f), O_BINARY) == -1) |