summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-06 15:44:02 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-06 15:44:02 +0000
commit9e262543c2c35c1c13e9c2e42f6d733c5c22a98f (patch)
tree6150217f381b0c0f79ccde24ef2944341b8a3ab9 /io.c
parentf433be6d9c9ca7010d2c4368030a09a76bb3b98b (diff)
* io.c (rb_io_flags_mode): typo fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index b5af714e3a..76578529c5 100644
--- a/io.c
+++ b/io.c
@@ -2290,7 +2290,7 @@ rb_io_modenum_mode(flags)
int flags;
{
#ifdef O_BINARY
-# define MODE_BINARY(a,b) ((mode & O_BINARY) ? (a) : (b))
+# define MODE_BINARY(a,b) ((flags & O_BINARY) ? (a) : (b))
#else
# define MODE_BINARY(a,b) (a)
#endif