diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-12 06:07:01 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-12 06:07:01 +0000 |
commit | 1d81baaf36860e0638f3d4691442e6974c5bb835 (patch) | |
tree | a27a843c6f04e3cc9430781fba1f5c55ab964c73 /io.c | |
parent | 6c2684ab953fdf01ca8a8986e410c630c4f2fc43 (diff) | |
download | ruby-1d81baaf36860e0638f3d4691442e6974c5bb835.tar.gz |
* io.c (MODE_BINMODE, MODE_BINARY): fixed reversed condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2288,7 +2288,7 @@ rb_io_flags_mode(flags) int flags; { #ifdef O_BINARY -# define MODE_BINMODE(a,b) ((flags & FMODE_BINMODE) ? (a) : (b)) +# define MODE_BINMODE(a,b) ((flags & FMODE_BINMODE) ? (b) : (a)) #else # define MODE_BINMODE(a,b) (a) #endif @@ -2425,7 +2425,7 @@ rb_io_modenum_mode(flags) int flags; { #ifdef O_BINARY -# define MODE_BINARY(a,b) ((flags & O_BINARY) ? (a) : (b)) +# define MODE_BINARY(a,b) ((flags & O_BINARY) ? (b) : (a)) #else # define MODE_BINARY(a,b) (a) #endif |