fiber do not work on MRB_NAN_BOXING

parent aa2040fc
...@@ -157,9 +157,10 @@ stack_extend(mrb_state *mrb, int room, int keep) ...@@ -157,9 +157,10 @@ stack_extend(mrb_state *mrb, int room, int keep)
#ifndef MRB_NAN_BOXING #ifndef MRB_NAN_BOXING
stack_clear(&(mrb->c->stack[keep]), room - keep); stack_clear(&(mrb->c->stack[keep]), room - keep);
#else #else
struct mrb_context *c = mrb->c;
int i; int i;
for (i=keep; i<room; i++) { for (i=keep; i<room; i++) {
SET_NIL_VALUE(mrb->stack[i]); SET_NIL_VALUE(c->stack[i]);
} }
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment