[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-cvs
Subject:    [ruby-cvs:37927] Ruby:r30736 (trunk): * array.c (rb_ary_uniq_bang): call ARY_SET_LEN(ary, 0) before
From:       naruse () ruby-lang ! org
Date:       2011-01-30 20:42:41
Message-ID: 201101302042.p0UKgfeC013239 () ci ! ruby-lang ! org
[Download RAW message or body]

naruse	2011-01-31 05:42:40 +0900 (Mon, 31 Jan 2011)

  New Revision: 30736

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30736

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/array.c

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic