Commit d39a355a authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

wrong ary->capa size was set in ary_modify()

parent c5536326
......@@ -122,7 +122,7 @@ ary_modify(mrb_state *mrb, struct RArray *a)
memcpy(ptr, p, len);
}
a->ptr = ptr;
a->aux.capa = len;
a->aux.capa = a->len;
mrb_ary_decref(mrb, shared);
}
a->flags &= ~MRB_ARY_SHARED;
......
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