зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
6c2684ab95
Коммит
1d81baaf36
|
@ -1,3 +1,7 @@
|
|||
Tue Oct 12 15:05:32 2004 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* io.c (MODE_BINMODE, MODE_BINARY): fixed reversed condition.
|
||||
|
||||
Mon Oct 11 13:48:20 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk/*: untabify
|
||||
|
|
4
io.c
4
io.c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче