fiber do not work on MRB_NAN_BOXING

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-05-24 15:35:55 +09:00
parent aa2040fc97
commit 97a11305c6
+2 -1
View File
@@ -157,9 +157,10 @@ stack_extend(mrb_state *mrb, int room, int keep)
#ifndef MRB_NAN_BOXING
stack_clear(&(mrb->c->stack[keep]), room - keep);
#else
struct mrb_context *c = mrb->c;
int i;
for (i=keep; i<room; i++) {
SET_NIL_VALUE(mrb->stack[i]);
SET_NIL_VALUE(c->stack[i]);
}
#endif
}