summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-06 08:02:34 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-06 08:02:34 +0000
commit1f008e71a6234759a8435084f3f6a1c6597f5dc5 (patch)
treedec4f9469ed4f05c04febe9c48904bf6ff8bfa5d
parent98dead34defdeaf0f401becfeb038a4e372a79f0 (diff)
downloadruby-1f008e71a6234759a8435084f3f6a1c6597f5dc5.tar.gz
ruby-1f008e71a6234759a8435084f3f6a1c6597f5dc5.tar.xz
ruby-1f008e71a6234759a8435084f3f6a1c6597f5dc5.zip
* io.c (rb_io_modenum_mode): typo fix again.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7000 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 b1e6c77a3..7670a6995 100644
--- a/io.c
+++ b/io.c
@@ -2425,7 +2425,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