summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-23 13:43:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-23 13:43:44 +0000
commit9662ee0584083d73c5e9a4aa6db13ed431df22e2 (patch)
treea334bf26a0d805579c0f19a7b309c9b43f904116 /vm.c
parentc29ad01850a994bdc9d931b341fbb494de41fd21 (diff)
internal.h: inline Check_Type
* internal.h (Check_Type): inline check for the object type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 4f4c646b943..77e08ab45c7 100644
--- a/vm.c
+++ b/vm.c
@@ -2583,7 +2583,7 @@ m_core_hash_merge_ptr(int argc, VALUE *argv, VALUE recv)
static int
kwmerge_i(VALUE key, VALUE value, VALUE hash)
{
- if (!SYMBOL_P(key)) Check_Type(key, T_SYMBOL);
+ Check_Type(key, T_SYMBOL);
rb_hash_aset(hash, key, value);
return ST_CONTINUE;
}
@@ -2591,7 +2591,7 @@ kwmerge_i(VALUE key, VALUE value, VALUE hash)
static int
kwcheck_i(VALUE key, VALUE value, VALUE hash)
{
- if (!SYMBOL_P(key)) Check_Type(key, T_SYMBOL);
+ Check_Type(key, T_SYMBOL);
return ST_CONTINUE;
}