aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-16 03:21:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-16 03:21:10 +0000
commit8008992e404a90c469cebca8f42fed59618944a7 (patch)
tree70f691e52ce7e69d0cb3859f2e36bfe7961a2fe5 /vm.c
parentc70a519d8fdbf2b5300a4632ad91f3a56d28547c (diff)
downloadruby-8008992e404a90c469cebca8f42fed59618944a7.tar.gz
vm_args.c: symbol proc
* vm_args.c (vm_caller_setup_arg_block): store symbols instead of ifuncs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 93a816dd37..755c28f2da 100644
--- a/vm.c
+++ b/vm.c
@@ -839,7 +839,7 @@ invoke_block_from_c_0(rb_thread_t *th, const rb_block_t *block,
VALUE self, int argc, const VALUE *argv, const rb_block_t *blockptr,
const rb_cref_t *cref, const int splattable)
{
- if (UNLIKELY(SPECIAL_CONST_P(block->iseq))) {
+ if (UNLIKELY(!RTEST(block->iseq))) {
return Qnil;
}
else if (LIKELY(RUBY_VM_NORMAL_ISEQ_P(block->iseq))) {