summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-27 14:16:50 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-27 14:16:50 +0000
commit94a5335148c70aec998bb5d2d1da07627e7d0503 (patch)
treef86c8d962d20e630c1293e3f6f228a43ba94276a /ext/socket
parent1f1c31e355c133d475fc99c3e9bd712957798169 (diff)
* ext/socket/ipsocket.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/ipsocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c
index c01f714..9d713d0 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) {