mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (rb_update_max_fd): remove parentheses. they are not in macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b41ccc4a9c
commit
55b0c9fb6c
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jul 20 23:02:18 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* io.c (rb_update_max_fd): remove parentheses. they are not in
|
||||
macro.
|
||||
|
||||
Wed Jul 20 22:22:23 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* include/ruby/intern.h (rb_update_max_fd): declaration moved from
|
||||
|
|
2
io.c
2
io.c
|
@ -154,7 +154,7 @@ static int max_file_descriptor = NOFILE;
|
|||
void
|
||||
rb_update_max_fd(int fd)
|
||||
{
|
||||
if (max_file_descriptor < (fd)) max_file_descriptor = (fd);
|
||||
if (max_file_descriptor < fd) max_file_descriptor = fd;
|
||||
}
|
||||
|
||||
#define argf_of(obj) (*(struct argf *)DATA_PTR(obj))
|
||||
|
|
Loading…
Add table
Reference in a new issue