diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/socket/ipsocket.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Mar 27 23:16:31 2011 Tanaka Akira <akr@fsij.org> + + * ext/socket/ipsocket.c: parenthesize macro arguments. + Sun Mar 27 16:55:34 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * misc/ruby-mode.el (ruby-mode-map): remove unnecessary diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c index c01f714ce6..9d713d0afd 100644 --- a/ext/socket/ipsocket.c +++ b/ext/socket/ipsocket.c @@ -139,7 +139,7 @@ static ID id_numeric, id_hostname; int rsock_revlookup_flag(VALUE revlookup, int *norevlookup) { -#define return_norevlookup(x) {*norevlookup = x; return 1;} +#define return_norevlookup(x) {*norevlookup = (x); return 1;} ID id; switch (revlookup) { |