1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* compile.c (iseq_compile_each): fix thorw insn option of next.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-08-16 18:12:02 +00:00
parent fc466622fd
commit 04176dc21f
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Fri Aug 17 03:07:37 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): fix thorw insn option of next.
Fri Aug 17 01:25:23 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_set_arguments), insnhelper.ci

View file

@ -2961,11 +2961,12 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ip = iseq;
while (ip) {
level = 0x8000;
if (ip->type == ISEQ_TYPE_BLOCK) {
level |= 0x4000;
if (ip->compile_data->redo_label != 0) {
/* while loop */
break;
}
else if (ip->compile_data->redo_label != 0) {
else if (ip->type == ISEQ_TYPE_BLOCK) {
level |= 0x4000;
break;
}
ip = ip->parent_iseq;