[ruby-cvs:52000] nobu:r44855 (trunk): array.c: comment why rb_ary_modify is needed twice

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Feb 6 10:31:27 JST 2014


nobu	2014-02-06 10:31:27 +0900 (Thu, 06 Feb 2014)

  New Revision: 44855

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

  Log:
    array.c: comment why rb_ary_modify is needed twice
    
    * array.c (rb_ary_initialize): NUM2LONG() may call size.to_int,
      ary can be frozen, modified, etc, so recheck after argument
      conversion is necessary.  [Closes GH-526]

  Modified files:
    trunk/array.c


More information about the ruby-cvs mailing list