summaryrefslogtreecommitdiff
path: root/ext/stringio
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-29 15:25:25 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-29 15:25:25 +0000
commit80fb9c7b4e94a57f72bd22bee41759e01ccbfbcf (patch)
tree3f5e3ac7d87a66bf5010dad700c5bc0919ce8d32 /ext/stringio
parent76cc9bf0cf6e4b8a3de762a7a49d77492dbc9424 (diff)
* ext/stringio/stringio.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/stringio')
-rw-r--r--ext/stringio/stringio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 208fd4d..594813c 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -30,7 +30,7 @@ struct StringIO {
static void strio_init(int, VALUE *, struct StringIO *);
-#define IS_STRIO(obj) (rb_typeddata_is_kind_of(obj, &strio_data_type))
+#define IS_STRIO(obj) (rb_typeddata_is_kind_of((obj), &strio_data_type))
#define error_inval(msg) (errno = EINVAL, rb_sys_fail(msg))
static struct StringIO *
@@ -80,7 +80,7 @@ static const rb_data_type_t strio_data_type = {
},
};
-#define check_strio(self) ((struct StringIO*)rb_check_typeddata(self, &strio_data_type))
+#define check_strio(self) ((struct StringIO*)rb_check_typeddata((self), &strio_data_type))
static struct StringIO*
get_strio(VALUE self)