summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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 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) {