Project

General

Profile

« Previous | Next » 

Revision 88a9b878

Added by naruse (Yui NARUSE) over 14 years ago

  • array.c (rb_ary_uniq_bang): call ARY_SET_LEN(ary, 0) before
    rb_resize_capa because rb_resize_capa expects resized length is
    smaller than current array length. call rb_ary_unshare before
    rb_resize_capa because rb_resize_capa losts the reference to
    original shared array.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e