1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix up r59776

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-09-08 07:22:47 +00:00
parent 8e03791373
commit b3907bb5dc

2
cont.c
View file

@ -1479,7 +1479,7 @@ fiber_store(rb_fiber_t *next_fib, rb_thread_t *th)
cont_save_machine_stack(th, &fib->cont); cont_save_machine_stack(th, &fib->cont);
if (ruby_setjmp(fib->cont.jmpbuf)) { if (ruby_setjmp(fib->cont.jmpbuf)) {
/* restored */ /* restored */
fib = th->fiber; fib = th->ec.fiber;
if (fib->cont.argc == -1) rb_exc_raise(fib->cont.value); if (fib->cont.argc == -1) rb_exc_raise(fib->cont.value);
if (next_fib->cont.value == Qundef) { if (next_fib->cont.value == Qundef) {
cont_restore_0(&next_fib->cont, &next_fib->cont.value); cont_restore_0(&next_fib->cont, &next_fib->cont.value);