mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1913 from take-cheeze/fiber_unnecessary_get_args
Remove unnecessary mrb_get_args in fiber_switch.
This commit is contained in:
@@ -156,7 +156,6 @@ fiber_switch(mrb_state *mrb, mrb_value self, int len, const mrb_value *a, mrb_bo
|
||||
if (c->status == MRB_FIBER_TERMINATED) {
|
||||
mrb_raise(mrb, E_FIBER_ERROR, "resuming dead fiber");
|
||||
}
|
||||
mrb_get_args(mrb, "*", &a, &len);
|
||||
mrb->c->status = resume ? MRB_FIBER_RESUMING : MRB_FIBER_TRANSFERRED;
|
||||
c->prev = resume ? mrb->c : (c->prev ? c->prev : mrb->root_c);
|
||||
if (c->status == MRB_FIBER_CREATED) {
|
||||
|
||||
Reference in New Issue
Block a user