summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-05 09:13:49 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-05 09:13:49 +0000
commit71aefcdabe5758e4e3123d91b7b975da5eb6c891 (patch)
treece41d27a0b5dfad0aa2c1c519289581d1e5886d5
parentb868096902b7afa2b8ceac9e040b8d7eae48f29a (diff)
downloadruby-71aefcdabe5758e4e3123d91b7b975da5eb6c891.tar.gz
ruby-71aefcdabe5758e4e3123d91b7b975da5eb6c891.tar.xz
ruby-71aefcdabe5758e4e3123d91b7b975da5eb6c891.zip
* io.c (rb_io_flags_mode): typo fix.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6998 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 b5dddd114..5515718b2 100644
--- a/io.c
+++ b/io.c
@@ -2288,7 +2288,7 @@ rb_io_flags_mode(flags)
int flags;
{
#ifdef O_BINARY
-# define MODE_BINMODE(a,b) ((mode & O_BINARY) ? (a) : (b))
+# define MODE_BINMODE(a,b) ((flags & O_BINARY) ? (a) : (b))
#else
# define MODE_BINMODE(a,b) (a)
#endif