ruby-changes:15846
From: nobu <ko1@a...>
Date: Thu, 13 May 2010 16:23:58 +0900 (JST)
Subject: [ruby-changes:15846] Ruby:r27780 (trunk): * vm_insnhelper.c (vm_invoke_block): iseq_t.type is VALUE.
nobu 2010-05-13 16:19:59 +0900 (Thu, 13 May 2010) New Revision: 27780 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27780 Log: * vm_insnhelper.c (vm_invoke_block): iseq_t.type is VALUE. Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 27779) +++ vm_insnhelper.c (revision 27780) @@ -913,7 +913,7 @@ 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/