summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-16 12:15:41 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-16 12:15:41 +0000
commitd7b06414c05354fd12d13323d922bb846ce3c72d (patch)
treeb187d786835d53afbe7d4dd7afe406878219539d /vm_insnhelper.c
parent5da19dd2c05e39728501a557f628d594e6e02679 (diff)
merges r27780 from trunk into ruby_1_9_2.
-- * vm_insnhelper.c (vm_invoke_block): iseq_t.type is VALUE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27837 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);