ruby-changes:62055
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Mon, 29 Jun 2020 11:08:27 +0900 (JST)
Subject: [ruby-changes:62055] bacd03ebdf (master): compile_redo: fix wrong condition
https://git.ruby-lang.org/ruby.git/commit/?id=bacd03ebdf From bacd03ebdfdd3940084cb54ffc0c2a75b0a4e8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Wed, 24 Jun 2020 11:15:38 +0900 Subject: compile_redo: fix wrong condition diff --git a/compile.c b/compile.c index f641cf9..ccb079c 100644 --- a/compile.c +++ b/compile.c @@ -6708,7 +6708,7 @@ compile_redo(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in https://github.com/ruby/ruby/blob/trunk/compile.c#L6708 ADD_INSN(ret, line, putnil); } } - else if (iseq->body->type == ISEQ_TYPE_EVAL && ISEQ_COMPILE_DATA(iseq)->start_label) { + else if (iseq->body->type != ISEQ_TYPE_EVAL && ISEQ_COMPILE_DATA(iseq)->start_label) { LABEL *splabel = NEW_LABEL(0); debugs("redo in block"); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/