diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 23:27:01 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 23:27:01 +0000 |
commit | 397271caa378d3d682a0b55fbc089b891567bde4 (patch) | |
tree | 8baf50d1da0875e2349cbf69e5016019b77ef692 | |
parent | f65a15b0cf3ac685fa8b94fb72656485dd222974 (diff) | |
download | ruby-397271caa378d3d682a0b55fbc089b891567bde4.tar.gz |
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
-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 */ |