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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-05-21 07:49:08 +09:00
parent 6492a3cdb8
commit a17fd80eb4
+1 -1
View File
@@ -215,7 +215,7 @@ cipush(mrb_state *mrb)
size_t size = ci - c->cibase;
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;
}
ci = ++c->ci;