[ruby-cvs:65320] nagachika:r58149 (ruby_2_3): merge revision(s) 57121: [Backport #13053]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Mon Mar 27 21:26:59 JST 2017


nagachika	2017-03-27 21:26:59 +0900 (Mon, 27 Mar 2017)

  New Revision: 58149

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58149

  Log:
    merge revision(s) 57121: [Backport #13053]
    
    array.c: do not resize to less than 0
    
    Shrinking the Array from the block invoked by Array#select! or
    Array#reject! causes the Array to be a negative number size. Ensure that
    the resulting Array won't be smaller than 0.
    [ruby-core:78739] [Bug #13053]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/array.c
    branches/ruby_2_3/test/ruby/test_array.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list