From d8ac44fcfcf730535df82a402bd7c97267b56d61 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 28 Mar 2011 20:20:33 +0000 Subject: [PATCH] * ext/socket/raddrinfo.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/socket/raddrinfo.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3f2bb5eb73..d280a33a05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Mar 29 05:19:57 2011 Tanaka Akira + + * ext/socket/raddrinfo.c: parenthesize macro arguments. + Tue Mar 29 00:03:51 2011 Tajima Akil * test/webrick/test_filehandler.rb (test_short_filename): diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index 6d2a5e9171..8cd25f0e07 100644 --- a/ext/socket/raddrinfo.c +++ b/ext/socket/raddrinfo.c @@ -545,7 +545,7 @@ addrinfo_s_allocate(VALUE klass) return TypedData_Wrap_Struct(klass, &addrinfo_type, 0); } -#define IS_ADDRINFO(obj) rb_typeddata_is_kind_of(obj, &addrinfo_type) +#define IS_ADDRINFO(obj) rb_typeddata_is_kind_of((obj), &addrinfo_type) static inline rb_addrinfo_t * check_addrinfo(VALUE self) {