summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-13 07:19:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-13 07:19:59 +0000
commit483ef372b1fc451ca902cae072cbd61756ee5323 (patch)
treecc55872099d14aa1dd817b2c4dd3f5dc5e8f9f36 /vm_insnhelper.c
parent266a9ea5f3156e0272b6d652179dd0046d2ad82d (diff)
* vm_insnhelper.c (vm_invoke_block): iseq_t.type is VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index f1ef50981f..0bd29b5208 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -913,7 +913,7 @@ vm_invoke_block(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_num_t num, rb_n
const rb_block_t *block = GET_BLOCK_PTR();
rb_iseq_t *iseq;
int argc = (int)num;
- int type = GET_ISEQ()->local_iseq->type;
+ VALUE type = GET_ISEQ()->local_iseq->type;
if ((type != ISEQ_TYPE_METHOD && type != ISEQ_TYPE_CLASS) || block == 0) {
rb_vm_localjump_error("no block given (yield)", Qnil, 0);