error in initializing callinfo stack in cipush(); close #1261

parent 6492a3cd
...@@ -215,7 +215,7 @@ cipush(mrb_state *mrb) ...@@ -215,7 +215,7 @@ cipush(mrb_state *mrb)
size_t size = ci - c->cibase; size_t size = ci - c->cibase;
c->cibase = (mrb_callinfo *)mrb_realloc(mrb, c->cibase, sizeof(mrb_callinfo)*size*2); c->cibase = (mrb_callinfo *)mrb_realloc(mrb, c->cibase, sizeof(mrb_callinfo)*size*2);
ci = c->cibase + size; c->ci = ci = c->cibase + size;
c->ciend = c->cibase + size * 2; c->ciend = c->cibase + size * 2;
} }
ci = ++c->ci; ci = ++c->ci;
......
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