mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
87c8c5edf4
commit
b0dd250dc9
21 changed files with 46 additions and 46 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue