mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
vm.c (stack_init): clear initial stack
This commit is contained in:
@@ -118,6 +118,7 @@ stack_init(mrb_state *mrb)
|
||||
/* mrb_assert(mrb->stack == NULL); */
|
||||
c->stbase = (mrb_value*)mrb_malloc(mrb, STACK_INIT_SIZE * sizeof(mrb_value));
|
||||
c->stend = c->stbase + STACK_INIT_SIZE;
|
||||
stack_clear(c->stbase, STACK_INIT_SIZE);
|
||||
|
||||
/* mrb_assert(ci == NULL); */
|
||||
static const mrb_callinfo ci_zero = { 0 };
|
||||
|
||||
Reference in New Issue
Block a user