mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use mrb_malloc instead of clearing mrb_calloc
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user