diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | cont.c | 6 |
2 files changed, 6 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Thu Oct 16 08:26:08 2014 Eric Wong <e@80x24.org> + + * cont.c (fiber_store): remove references to nextfib + fix build when FIBER_USE_NATIVE is 0 + Thu Oct 16 06:51:35 2014 Knut Franke <Knut.Franke@gmx.de> * vm_core.h: declare rb_fiber_t typedef @@ -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 */ |