summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-30 09:32:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-30 09:32:56 +0000
commit1dd17757b547dbc056faa42e13fd3e1fd711a608 (patch)
treea5be8dbddace6615325aa7034305eea807ff6086 /io.c
parent1234770ca21f8bd9586b6c932fdb2cd2b0b2271b (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 7e8310a714..b187bfec31 100644
--- a/io.c
+++ b/io.c
@@ -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)