Commit cfc1269d authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

revert part of #507 for warning

parent c6c4da8c
......@@ -326,7 +326,6 @@ struct RBasic*
mrb_obj_alloc(mrb_state *mrb, enum mrb_vtype ttype, struct RClass *cls)
{
struct RBasic *p;
static const RVALUE RVALUE_zero = { 0 };
#ifdef MRB_GC_STRESS
mrb_garbage_collect(mrb);
......@@ -346,7 +345,7 @@ mrb_obj_alloc(mrb_state *mrb, enum mrb_vtype ttype, struct RClass *cls)
mrb->live++;
gc_protect(mrb, p);
*(RVALUE *)p = RVALUE_zero;
memset(p, 0, sizeof(RVALUE));
p->tt = ttype;
p->c = cls;
paint_partial_white(mrb, p);
......
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