diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 2 |
2 files changed, 6 insertions, 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 @@ -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)) |