diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-23 07:13:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-23 07:13:21 +0000 |
commit | b0dd250dc95ea0fae89c3201967039d582fbf156 (patch) | |
tree | fb9483ca974a305e496eb87e960dcfecf7b9115f /ext/racc/cparse/cparse.c | |
parent | 87c8c5edf43a7f7d33d5fe75f51ef410a03b93b1 (diff) | |
download | ruby-b0dd250dc95ea0fae89c3201967039d582fbf156.tar.gz |
use RB_TYPE_P() instead of comparison of TYPE()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/racc/cparse/cparse.c')
-rw-r--r-- | ext/racc/cparse/cparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c index 3a2a8ae74e..10a9a030ac 100644 --- a/ext/racc/cparse/cparse.c +++ b/ext/racc/cparse/cparse.c @@ -416,7 +416,7 @@ extract_user_token(struct cparse_params *v, VALUE block_args, return; } - if (TYPE(block_args) != T_ARRAY) { + if (!RB_TYPE_P(block_args, T_ARRAY)) { rb_raise(rb_eTypeError, "%s() %s %s (must be Array[2])", v->lex_is_iterator ? rb_id2name(v->lexmid) : "next_token", |