[ruby-cvs:69923] nagachika:r62782 (ruby_2_4): merge revision(s) 60666, 60667, 60668: [Backport #14082]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Sat Mar 17 01:41:24 JST 2018


nagachika	2018-03-17 01:41:23 +0900 (Sat, 17 Mar 2018)

  New Revision: 62782

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

  Log:
    merge revision(s) 60666,60667,60668: [Backport #14082]
    
    Fix size on Enumerable#cycle when the size is 0 [Bug #14082].
    
    Patch by Kenichi Kamiya
    
    test/ruby/test_lazy_enumerator.rb: test for [Bug #14082]
    
    enum.c: check argument first
    
    * enum.c (enum_cycle_size): check an argument before the size of
      the receiver, if it is given.

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/enum.c
    branches/ruby_2_4/test/ruby/test_enumerator.rb
    branches/ruby_2_4/test/ruby/test_lazy_enumerator.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list