summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-15 23:27:01 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-15 23:27:01 +0000
commit397271caa378d3d682a0b55fbc089b891567bde4 (patch)
tree8baf50d1da0875e2349cbf69e5016019b77ef692 /cont.c
parentf65a15b0cf3ac685fa8b94fb72656485dd222974 (diff)
cont.c: fix build when FIBER_USE_NATIVE is 0
* cont.c (fiber_store): remove references to nextfib git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 6452c85..f5835eb 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 */