From 483ef372b1fc451ca902cae072cbd61756ee5323 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 13 May 2010 07:19:59 +0000 Subject: [PATCH] * 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 --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);