[ruby-cvs:50370] nagachika:r43228 (ruby_2_0_0): merge revision(s) 42040, 42041, 42047: [Backport #8654]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Thu Oct 10 01:04:15 JST 2013


nagachika	2013-10-10 01:04:12 +0900 (Thu, 10 Oct 2013)

  New Revision: 43228

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

  Log:
    merge revision(s) 42040,42041,42047: [Backport #8654]
    
    * array.c (rb_ary_count): iterate items appropriately.
      [Bug #8654]
    
    * array.c (rb_ary_count): check length to avoid SEGV
      while iterating. Remove other pointer loop when arg is given.
    
    * test/ruby/test_array.rb (test_count): add test for bug.
      [ruby-core:56072] [Bug #8654]
    
    * test/ruby/test_array.rb (test_count): add a test case for #count
      with an argument. See Bug #8654.

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


More information about the ruby-cvs mailing list