ruby-changes:15896
From: yugui <ko1@a...>
Date: Sun, 16 May 2010 21:17:10 +0900 (JST)
Subject: [ruby-changes:15896] Ruby:r27837 (ruby_1_9_2): merges r27780 from trunk into ruby_1_9_2.
yugui 2010-05-16 21:15:41 +0900 (Sun, 16 May 2010) New Revision: 27837 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27837 Log: merges r27780 from trunk into ruby_1_9_2. -- * vm_insnhelper.c (vm_invoke_block): iseq_t.type is VALUE. Modified files: branches/ruby_1_9_2/vm_insnhelper.c Index: ruby_1_9_2/vm_insnhelper.c =================================================================== --- ruby_1_9_2/vm_insnhelper.c (revision 27836) +++ ruby_1_9_2/vm_insnhelper.c (revision 27837) @@ -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/