From bacd03ebdfdd3940084cb54ffc0c2a75b0a4e8d0 Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Wed, 24 Jun 2020 11:15:38 +0900 Subject: compile_redo: fix wrong condition --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index f641cf91ee..ccb079c5e0 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 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 v1.2.3