summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index 548b163f7b..9cac2682df 100644
--- a/cont.c
+++ b/cont.c
@@ -1061,7 +1061,9 @@ fiber_init(VALUE fibval, VALUE proc)
th->cfp--;
th->cfp->pc = 0;
th->cfp->sp = th->stack + 1;
- th->cfp->bp = 0;
+#if VM_DEBUG_BP_CHECK
+ th->cfp->bp_check = 0;
+#endif
th->cfp->ep = th->stack;
*th->cfp->ep = VM_ENVVAL_BLOCK_PTR(0);
th->cfp->self = Qnil;