summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cont.c b/cont.c
index 6452c8522d..f5835ebab0 100644
--- a/cont.c
+++ b/cont.c
@@ -1377,15 +1377,11 @@ fiber_store(rb_fiber_t *next_fib, rb_thread_t *th)
/* restored */
fib = th->fiber;
if (fib->cont.argc == -1) rb_exc_raise(fib->cont.value);
- if (nextfib->cont.value == Qundef) {
- cont_restore_0(nextfib->cont, &nextfib->cont.value);
- rb_bug("rb_fiber_resume: unreachable");
- }
return fib->cont.value;
}
else {
VALUE undef = Qundef;
- cont_restore_0(nextfib->cont, &undef);
+ cont_restore_0(&fib->cont, &undef);
rb_bug("rb_fiber_resume: unreachable");
}
#endif /* FIBER_USE_NATIVE */