Commit 22f22cc2 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

use mrb_malloc instead of clearing mrb_calloc

parent b0f3c28c
......@@ -46,7 +46,7 @@ ary_new_capa(mrb_state *mrb, int capa)
}
a = (struct RArray*)mrb_obj_alloc(mrb, MRB_TT_ARRAY, mrb->array_class);
a->ptr = (mrb_value *)mrb_calloc(mrb, blen, 1);
a->ptr = (mrb_value *)mrb_malloc(mrb, blen);
a->aux.capa = capa;
a->len = 0;
......
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