summaryrefslogtreecommitdiffstats
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
commit26779979350c5daadea77bb336f32af67725d84b (patch)
tree6150217f381b0c0f79ccde24ef2944341b8a3ab9
parente3ba92ecbef87eaf8034afbf565c992247a16a17 (diff)
downloadruby-26779979350c5daadea77bb336f32af67725d84b.tar.gz
ruby-26779979350c5daadea77bb336f32af67725d84b.tar.xz
ruby-26779979350c5daadea77bb336f32af67725d84b.zip
* io.c (rb_io_flags_mode): typo fix.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index b5af714e3..76578529c 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