From 55b0c9fb6caf4e578982ac7354a943d2d6cc4289 Mon Sep 17 00:00:00 2001 From: kazu Date: Wed, 20 Jul 2011 15:00:00 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ io.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 642edd69d6..19ae34a2e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 20 23:02:18 2011 Kazuhiro NISHIYAMA + + * io.c (rb_update_max_fd): remove parentheses. they are not in + macro. + Wed Jul 20 22:22:23 2011 Tanaka Akira * include/ruby/intern.h (rb_update_max_fd): declaration moved from diff --git a/io.c b/io.c index ab40e72c30..b8d2e5bca5 100644 --- a/io.c +++ b/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))