Commit 60e8d80f authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

Merge branch 'master' of github.com:mruby/mruby

parents 5b47ec7a c9227e44
...@@ -76,6 +76,7 @@ mrb_add_irep(mrb_state *mrb, int idx) ...@@ -76,6 +76,7 @@ mrb_add_irep(mrb_state *mrb, int idx)
if (idx > max) max = idx+1; if (idx > max) max = idx+1;
mrb->irep = mrb_malloc(mrb, sizeof(mrb_irep*)*max); mrb->irep = mrb_malloc(mrb, sizeof(mrb_irep*)*max);
memset(mrb->irep, 0, sizeof(mrb_irep*)*max);
mrb->irep_capa = max; mrb->irep_capa = max;
} }
else if (mrb->irep_capa <= idx) { else if (mrb->irep_capa <= idx) {
......
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